03.10.2011, 16:35
Quote:
Eu atй ajudaria mas prefiro strtok por mais que todos odeiem, agora se vc quiser em strtok pode falar q eu ajudo.
|
Quote:
pawn Код:
|
Olha os erros sгo os seguintes:
pawn Код:
C:\Users\usuario\Desktop\STDM\gamemodes\STDM.pwn(2125) : error 029: invalid expression, assumed zero
C:\Users\usuario\Desktop\STDM\gamemodes\STDM.pwn(2131) : warning 209: function "cmd_vida" should return a value
C:\Users\usuario\Desktop\STDM\gamemodes\STDM.pwn(2147) : error 029: invalid expression, assumed zero
C:\Users\usuario\Desktop\STDM\gamemodes\STDM.pwn(2153) : warning 217: loose indentation
C:\Users\usuario\Desktop\STDM\gamemodes\STDM.pwn(2153) : error 029: invalid expression, assumed zero
C:\Users\usuario\Desktop\STDM\gamemodes\STDM.pwn(2153) : error 017: undefined symbol "cmd_skin"
C:\Users\usuario\Desktop\STDM\gamemodes\STDM.pwn(2153) : error 029: invalid expression, assumed zero
C:\Users\usuario\Desktop\STDM\gamemodes\STDM.pwn(2153) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
pawn Код:
CMD:vida(playerid, params[])
{
new string[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo estб logado na RCON.");
if(sscanf(params, "ud", id, valor[0]))return SendClientMessage(playerid, COLOR_BLACK_GRAY, "[ERRO DE SINTAXE] /vida [id] [vida]");
if(IsPlayerConnected(id))
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
format(string, sizeof(string), "O Admnistrador %s setou a vida de %s para %d.", pNome(playerid),pNome(i),valor[0]);
SendClientMessageToAll(COLOR_WHITE, string);
SetPlayerHealth(id,valor[0]);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_BLACK_GRAY, "Jogador nгo conectado.");
return 1;
}
}
}
CMD:setscore(playerid, params[])
{
new string[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo estб logado na RCON.");
if(sscanf(params,"ud",id, valor[0]))return SendClientMessage(playerid, COLOR_BLACK_GRAY, "[ERRO DE SINTAXE] /setscore [id] [score]");
if(IsPlayerConnected(id))
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
format(string, sizeof(string), "O Admnistrador %s setou o score de %s para %d.", pNome(playerid),pNome(i),valor[0]);
SendClientMessageToAll(COLOR_WHITE, string);
SetPlayerScore(id,valor[0]);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_BLACK_GRAY, "Jogador nгo conectado.");
}
}
CMD:skin(playerid, params[])
{
new string[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo estб logado na RCON.");
if(sscanf(params,"d",valor[0])) return SendClientMessage(playerid, COLOR_BLACK_GRAY,"USE: /skin [ID da SKIN]");
if(valor[0] > 299 || valor[0] < 1) return SendClientMessage(playerid, -1, "Numero da skin invalida!!");
format(string, sizeof(string), "Vocк mudou sua skin para a skin %d", valor[0]);
SendClientMessage(playerid, -1, string);
SetPlayerSkin(playerid, valor[0]);
return 1;
}