Problem(error/warning): imam problem sa ovom komandom
CMD:postavilidera(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] <= 6) return SCM(playerid,-1,""COL_RED"Nisi admin");
new targetid,orgname[25];
if(sscanf(params,"us[25]",targetid,orgname))
{
SCM(playerid,-1,""COL_RED"[LCRP] Koristi postavilidera [id ili ime][ime org]!");
SCM(playerid,-1,""COL_RED"[LCRP] 1:GSF");
return 1;
}
if(!strcmp(orgname,"GSF",true))
{
PlayerInfo[targetid][pOrgID] = 1;
PlayerInfo[targetid][pRank] = 6;
format(str,sizeof(str),""COL_RED"Admin %s ti je dao lidera organizacije GSF.",GetName(playerid);
SCM(targetid,-1,str);
SetPlayerSkin(targetid,GSF1_SKIN_RANK_6);
}
return 1;
}
kad ubacim tu cmd i compile izlaze mi ovih 7 errora https://imgur.com/a/AHuDL7l inace ovaj cetvrti erorr je
028: invalid subscript (not an array or too many subscripts): "GetName"
Dio skripte: pwn
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log)://
Slika/video ingame problema(obavezno ako je ingame problem): /
[pawn]CMD:postavilidera(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] <= 6) return SCM(playerid,-1,""COL_RED"Nisi admin");
new targetid,orgname[25],str[128];
if(sscanf(params,"us[25]",targetid,orgname))
{
SCM(playerid,-1,""COL_RED"[LCRP] Koristi postavilidera [id ili ime][ime org]!");
SCM(playerid,-1,""COL_RED"[LCRP] 1:GSF");
return 1;
}
if(!strcmp(orgname,"GSF",true))
{
PlayerInfo[targetid][pOrgID] = 1;
PlayerInfo[targetid][pRank] = 6;
format(str,sizeof(str),""COL_RED"Admin %s ti je dao lidera organizacije GSF.",GetName(playerid));
SCM(targetid,-1,str);
SetPlayerSkin(targetid,GSF1_SKIN_RANK_6);
}
return 1;
}
[/pawn]