10.01.2011, 19:18
Hey guys.
How to make this like you can do /fheal armor
Because this give errors at this part:P
if(choice[playerid] == "health")
I'm out of mind once again
please help
How to make this like you can do /fheal armor
Because this give errors at this part:P
if(choice[playerid] == "health")
I'm out of mind once again
please help
pawn Код:
COMMAND:fheal(playerid,params[])
{
new choice;
if(funpoints[playerid]<8) return SendClientMessage(playerid, COLOR_DARKORANGE, "You need atleast 8 funpoints");
if(sscanf(params,"s",choice)) SendClientMessage(playerid, COLOR_DARKORANGE, "HINT: /fheal [health/armor]");
else
{
if(choice[playerid] == "health")
{
}
}
return 1;
}
Код:
C:\Users\Michael\Desktop\Samp scvripting\filterscripts\funpoints.pwn(189) : error 028: invalid subscript (not an array or too many subscripts): "choice" C:\Users\Michael\Desktop\Samp scvripting\filterscripts\funpoints.pwn(189) : warning 215: expression has no effect C:\Users\Michael\Desktop\Samp scvripting\filterscripts\funpoints.pwn(189) : error 001: expected token: ";", but found "]" C:\Users\Michael\Desktop\Samp scvripting\filterscripts\funpoints.pwn(189) : error 029: invalid expression, assumed zero C:\Users\Michael\Desktop\Samp scvripting\filterscripts\funpoints.pwn(189) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.