18.07.2011, 17:01
PHP код:
if(strcmp("/selfdestruction", cmdtext, true) == 0)
{
if(IsPlayerConnected(playerid))
{
new pSkin;
pSkin = GetPlayerSkin(playerid);
if(pSkin == 255))
{
new string[128];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, string, sendername);
format(string, sizeof(string),"%s has activated Self-Destruction of the carrier, Use the door at the carrier to escape with the boats!", sendername);
SendClientMessageToAll(COLOR_RED1, string);
CountDownTimer = SetTimer("CountDown", 30000, false);
}
}
else
{
SendClientMessage(playerid, COLOR_WRONG, "Player not Connected!");
}
return 1;
}
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];
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;
}
Quote:
C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(396) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(400) : error 035: argument type mismatch (argument 3) 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(413) : warning 217: loose indentation C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(423) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(427) : error 035: argument type mismatch (argument 3) C:\Documents and Settings\Administrator\Bureaublad\Samp server\gamemodes\Carrier.pwn(442) : warning 217: loose indentation |
Line 400 : GetPlayerName(playerid, string, sendername);
Line 410 : return 1;
Line 413 : if(strcmp("/makecaptain", cmdtext, true) == 0)
Line 423 : if(pSkin == 255))
Line 427 : GetPlayerName(playerid, string, sendername2);
Line 442 : return 1;
String :
new string[128];
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);
Problem?