06.07.2014, 20:54
Tou com um problema no comando /pintar ao compilar.
pawn Код:
new.pwn(1061) : error 001: expected token: ";", but found "-identifier-"
new.pwn(1061) : error 017: undefined symbol "s"
new.pwn(1061) : warning 215: expression has no effect
new.pwn(1061) : error 001: expected token: ";", but found "]"
new.pwn(1061) : fatal error 107: too many error messages on one line
command(pintar,playerid, params[])
{
new
cor1,
cor2,
idcarro
linha ---1061 s[256];
;
idcarro = GetPlayerVehicleID(playerid);
tmp = strtok(cmd,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFFFFFFAA, "* Uso: /pintar [cor1] [cor2]");
return 1;
}
cor1 = strval(tmp);
tmp = strtok(cmd,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFFFFFFAA, "* Uso: /pintar [cor1] [cor2]");
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
cor2 = strval(tmp);
ChangeVehicleColor(idcarro, cor1, cor2);
format(s, sizeof(s), "* Cores alteradas cor1: %d e cor2: %d.", cor1, cor2);
SendClientMessage(playerid, 0xFFFFFFAA, s);
}
else
{
SendClientMessage(playerid, 0xFFFFFFAA, "* Vocк nгo estб em um veнculo !");
}
return 1;
}