title says
error:
lines
warnings
error:
PHP Code:
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(560) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(562) : error 036: empty statement
PHP Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new i = 0; i < sizeof(AdminCar); i ++)
{
if(vehicleid == AdminCar[i] && !IsPlayerAdmin(playerid))
{
ClearAnimations(playerid);
GameTextForPlayer(playerid,"~r~ ADMINS ONLY",1250,4);
}
// 560 for(new i = 0; i < sizeof(GsfCar); i ++)
{
// 562 if(vehicleid == GsfCar[i] && PlayerInfo[pInfo][pOrgID] == 0);
{
ClearAnimations(playerid);
GameTextForPlayer(playerid,"~r~ GROVES STREET FAMILIES",1250,4);
}
}
}
return 1;
}
PHP Code:
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(687) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(687) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(706) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\Server\gamemodes\AdminPlugin.pwn(706) : warning 202: number of arguments does not match definition
PHP Code:
if(!strcmp(orgname,"Grove Street Families",true))
{
new str[100];
PlayerInfo[targetid][pOrgID] = 1;
PlayerInfo[targetid][pRank] = 6;
OrgInfo[1][oBrojClanova]++;
//687 format(str,sizeof(str),"Admin %s ti je dao lidera organizacije Grove Street Families.",GetName(playerid));
SCM(targetid,-1,str);
SetPlayerSkin(targetid,ORGGROVE_SKIN_RANK_6);
}
UpdateOrgTexts();
for(new o=1;o<MAX_ORGS;o++)
{
SacuvajOrg(o);
}
return 1;
}
CMD:skinilidera(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] <= 5) return SCM(playerid,COLOR_RED,"Nisi admin!");
new targetid;
// 702 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),"Admin %s ti je dao lidera organizacije Grove Street Families.",GetName(playerid));
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;
}