06.03.2012, 06:35
Hey Guys
this is the layout.
bassically, if their police & they go onto the pickup give 99.9 armour & set their p_Armour var to 1.
give some text sayying 'found body armour' and start an animation for 4 seconds.
now here's the issues.
this is the first time tryna code one of these things probbably done it wronge but can someone help me fix it/ the errors
ERRORS
this is the layout.
bassically, if their police & they go onto the pickup give 99.9 armour & set their p_Armour var to 1.
give some text sayying 'found body armour' and start an animation for 4 seconds.
now here's the issues.
this is the first time tryna code one of these things probbably done it wronge but can someone help me fix it/ the errors
Код:
public OnPlayerPickUpPickup(playerid, pickupid) { if(gTeam[playerid] = t_Police && pickupid == p_Armour && GetPVarInt[playerid]"p_Armour" == 0)//LINE ALL THE ERRORS ARE ON { SetPVarInt(playerid, "p_Armour", 1); SetPlayerArmour(playerid,99.9); GameTextForPlayer(playerid,"~w~FOUND BODY ARMOUR",5000,4); ApplyAnimation(playerid,"BSKTBALL","BBALL_pickup",4.0,0,0,0,0,0); return 1; } return 1; }
Код:
error 028: invalid subscript (not an array or too many subscripts): "GetPVarInt" error 001: expected token: ";", but found "]" error 029: invalid expression, assumed zero fatal error 107: too many error messages on one line