Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

details

$
0
0
after my script got deleted and when i recovered it i still had some strange erors:
PHP Code:

C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(637) : error 035argument type mismatch (argument 3)
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(656) : error 035argument type mismatch (argument 3)
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(755) : warning 203symbol is never used"Org1Vozila"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(755) : warning 203symbol is never used"PolicijaVozila"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


2 Errors


dont mind those warning i solved them.
script:
PHP Code:

CMD:skinilidera(playerid,params[])
{
    if(
PlayerInfo[playerid][pAdmin] <= 5) return SCM(playerid,COLOR_RED,"Nisi admin!");
    new 
targetid;
    if(
sscanf(params,"u",targetid)) return SCM(playerid,COLOR_RED,"Koristi:/skinilidera [Id/Ime]!");
    if(
PlayerInfo[targetid][pRank] < 6) return SCM(playerid,COLOR_RED,"Taj igrac nije lider!");
    
OrgInfo[PlayerInfo[targetid][pOrgID]][oBrojClanova]--;
    new 
str[100];
     
format(str,sizeof(str),COLOR_RED,"Admin %s ti je skinuo lidera.",GetName(playerid)); // and here
     
SCM(targetid,COLOR_RED,str);
    
PlayerInfo[targetid][pOrgID] = -1;
    
PlayerInfo[targetid][pRank] = 0;
    
SetPlayerSkin(playerid,100);
    
UpdateOrgTexts();
       for(new 
o=1;o<MAX_ORGS;o++)
    {
        
SacuvajOrg(o);
    }
    return 
1;


and
PHP Code:

CMD:postavilidera(playerid,params[])
{
    if(
PlayerInfo[playerid][pAdmin] <= 5) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Morate biti Admin(level 6), da koristite ovu komandu!");
    if(
PlayerInfo[playerid][pAdmin] == 0) return SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Morate biti Admin, da koristite ovu komandu!");
    new 
targetid,orgname[25];
    if(
sscanf(params,"us[25]",targetid,orgname))
    {
        
SendClientMessage(playerid,COLOR_RED,"[RMT:RP]:Upotreba: /postavilidera [ID/Ime][Ime organizacije]!");
        
SCM(playerid,COLOR_RED,"1:Grove Street Families!");
        return 
1;
 }
    if(
PlayerInfo[targetid][pRank] == 6) return SCM(playerid,COLOR_RED,"[RMT:RP]:Igrac je vec lider neke organizacije. Da mu skinete lidera koristi /skinilidera!");
    if(
PlayerInfo[playerid][pOrgID] == 1)
    {
        
OrgInfo[1][oBrojClanova]--;
    }
    new 
str[100];
    if(!
strcmp(orgname,"Grove Street Families",true))
    {
        
PlayerInfo[targetid][pOrgID] = 1;
        
PlayerInfo[targetid][pRank] = 6;
        
OrgInfo[1][oBrojClanova]++;
        
format(str,sizeof(str),COLOR_RED,"Admin %s ti je dao lidera organizacije Grove Street Families.",GetName(playerid));
        
SCM(targetid,-1,str);
        
SetPlayerSkin(targetid,ORGGROVE_SKIN_RANK_6); // its up there admin %s ti je dao lidera...
    
}
    
UpdateOrgTexts();
       for(new 
o=1;o<MAX_ORGS;o++)
    {
        
SacuvajOrg(o);
    }
    return 
1;


any help is welcome and it can result as reputation point

Viewing all articles
Browse latest Browse all 18226

Trending Articles