30.09.2012, 11:22
How to make a cmd usable 1 time and when you die you can use it again is that possible
new can'tuseafterdeath;
public OnPlayerDeath(playerid, killerid, reason) { can'tuseafterdeath=1; return 1; }
if (can'tuseafterdeath==1) return SendClientMessage(playerid, Yellow, "You can't use this command because you've died before.");
C:\Users\PC\Desktop\new\gamemodes\new.pwn(54) : error 027: invalid character constant C:\Users\PC\Desktop\new\gamemodes\new.pw(1710) : error 027: invalid character constant C:\Users\PC\Desktop\new\gamemodes\new.pwn(1710) : warning 215: expression has no effect C:\Users\PC\Desktop\new\gamemodes\new.pwn(1710) : error 001: expected token: ";", but found "-identifier-" C:\Users\PC\Desktop\new\gamemodes\new.pwn(1710) : error 017: undefined symbol "useafterdeath" C:\Users\PC\Desktop\new\gamemodes\new.pwn(1710) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
can'tuseafterdeath=1;
new can'tuseafterdeath;
new cantuseafterdeath;
cantuseafterdeath=1;
if(cantuseafterdeath==1) return SendClientMessage(playerid, Yellow, "You can't use this command because you've died before");