if(strcmp("/makecaptain", cmdtext, true, 12) == 0) { new targetid; if(!IsPlayerConnected(targetid)) { SendClientMessage(playerid, COLOR_WRONG, "Player Not Connected!"); } else { if(!IsPlayerAdmin(playerid)) { SendClientMessage(playerid, COLOR_WRONG, "You are not an admin!"); } else if(GetPlayerSkin[playerid] = 255)) { new string[256]; new sendername2[MAX_PLAYER_NAME]; GetPlayerName(playerid, string, sendername2); format(string, sizeof(string),"%s has made you a Captain, Don't abuse this position!", sendername2); SetPlayerTeam(targetid, 0); } } } return 1; } |
C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(397) : warning 217: loose indentation C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(410) : error 028: invalid subscript (not an array or too many subscripts): "GetPlayerSkin" C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(410) : warning 215: expression has no effect C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(410) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(410) : warning 217: loose indentation C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(410) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(410) : fatal error 107: too many error messages on one line |
C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(390) : error 035: argument type mismatch (argument 3) C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(397) : warning 217: loose indentation C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(414) : error 035: argument type mismatch (argument 3) C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(420) : warning 217: loose indentation |
if(strcmp("/makecaptain", cmdtext, true) == 0)
{
new targetid;
if(IsPlayerConnected(targetid))
{
if(IsPlayerAdmin(playerid))
{
new pSkin;
pSkin = GetPlayerSkin(playerid);
if(pSkin == 255))
{
new string[128]; // Make sure your strings are ALWAYS no higher than 128 cells
new sendername2[MAX_PLAYER_NAME];
GetPlayerName(playerid, string, sendername2);
format(string, sizeof(string),"%s has made you a Captain, Don't abuse this position!", sendername2);
SetPlayerTeam(targetid, 0);
}
}
else
{
SendClientMessage(playerid, COLOR_WRONG, "You are not an admin!");
}
}
else
{
SendClientMessage(playerid, COLOR_WRONG, "Player Not Connected!");
}
return 1;
}