29.06.2015, 11:54
Hello! I have a big problem, I changed the command to strcmp, and is showing errors .. what I did wrong ..
Код:
C:\Users\2\Desktop\gamemode\gamemodes\2.pwn(48231) : error 017: undefined symbol "params" C:\Users\2\Desktop\gamemode\gamemodes\2.pwn(48224) : warning 204: symbol is assigned a value that is never used: "Msg" C:\Users\2\Desktop\gamemode\gamemodes\2.pwn(48234) : warning 204: symbol is assigned a value that is never used: "PickID" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
PHP код:
if (strcmp(cmd, "/criarpickup", true) == 0)
{
new PickupModelo, PickID, Msg[128], Float: x, Float: y, Float: z, PickupTipo;
for (new i; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
if (PlayerInfo[playerid][pAdmin] == 3000)
{
if (sscanf(params, "ifffi", PickupModelo, x, y, z, PickupTipo)) SendClientMessage(playerid, 0xFF0000AA, "Digite: \"/criarpick <PickupModelo> <x> <y> <z> <PickupTipo>\"");
else
{
PickID = CreatePickup(PickupModelo, PickupTipo, x, y, z, -1);
}
}
else return 0;
}
else return 0;
}
return 1;
}