05.12.2012, 23:29
pawn Код:
CMD:abastecer(playerid, params[])
{
new ID, Gaz[128];
// if(pInfo[playerid][Time]!= 2) return SendClientMessage(playerid,-1, "Nгo й um mecвnico.");
if(sscanf(params,"ud",ID, Gaz)) return SendClientMessage(playerid,-1,"Use: /Abastecer [ID] [Gasolina]");
if(Gaz < 0 || Gaz > 100) return SendClientMessage(playerid,-1,"A Gasolina deve estar entre 0 e 100.");
if(!IsPlayerInAnyVehicle(ID)) return SendClientMessage(playerid, -1, "O Jogador nгo estб num veiculo.");
// Gasolina[vehicleid][Gas] = 100;
return 1;
}
pawn Код:
C:\Users\Lucas\Desktop\Mecanico.pwn(10) : error 033: array must be indexed (variable "Gaz")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Como resolve saporra ?