14.10.2011, 00:40
desculpa o double post mais esse aki da esses erros
erros:
linhas:
erros:
PHP код:
(17233) : error 021: symbol already defined: "OnPlayerSpawn"
(17234) : error 017: undefined symbol "cmd"
(17237) : error 017: undefined symbol "tmp"
(17237) : error 017: undefined symbol "cmdtext"
(17238) : error 017: undefined symbol "tmp"
(17243) : error 017: undefined symbol "tmp"
(17255) : error 017: undefined symbol "Admin"
(17265) : error 030: compound statement not closed at the end of file (started at line 17234)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.
PHP код:
public OnPlayerSpawn(playerid)
{
if(strcmp(cmd, "/skin", true) == 0)
{
new skinid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFFFF00FF, "Digite: /skin [id do skin]");
return 1;
}
skinid = strval(tmp);
if(skinid == 3 || skinid == 4 || skinid == 5 || skinid == 6 || skinid == 8 || skinid == 42 || skinid == 65 ||
skinid == 74 || skinid == 86 || skinid == 119 || skinid == 149 || skinid == 208 || skinid == 273 || skinid == 289)
{
SendClientMessage(playerid, COLOR_RED, "ID do skin invбlido!");
return 1;
}
if(skinid < 0 || skinid > 299)
{
SendClientMessage(playerid, COLOR_RED, "ID do skin invбlido!");
return 1;
}
if(PlayerInfo[playerid][Admin] < 2)
{
if(skinid == 260 || skinid == 270 || skinid == 271)
{
SendClientMessage(playerid, 0x00FFFFAA, "Vocк nгo й um Administrador para usar estб skin.");
return 1;
}
}
return 1;
}