18.07.2011, 14:46
Quote:
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; } |
With the errors :
Quote:
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 |
Line 410 =
else if(GetPlayerSkin[playerid] = 255))
Line 397 = if(strcmp("/makecaptain", cmdtext, true, 12) == 0)
Without the GetplayerSkin these errors come :
Quote:
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 |
Line 397 =if(strcmp("/makecaptain", cmdtext, true, 12) == 0)
Line 414 = GetPlayerName(playerid, string, sendername2);
Line 420 = return 1;
Please Help, I cant continue scripting, Or give me a other example i have already tryed ''GetPlayerTeam'' but that crashes and getplayerskin diden't work too. (they can't change skin in my server)