SA-MP Forums Archive
Health Pickup. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Health Pickup. (/showthread.php?tid=461946)



Health Pickup. - BoU3A - 04.09.2013

Im trying to create health pickup but got this Errors



PHP код:
new Health
PHP код:
Health CreatePickup(1240 22031.0740,-1404.0616,17.2653, -1); 
PHP код:
    else if (pickupid == Health)
    {
    
      
SetPlayerHealth(Playerid100);
    }
    return 
1;

Код:
C:\Users\John\samp03x_svr_R1-2_win32\gamemodes\MyFrist.pwn(101) : error 001: expected token: ",", but found "-integer value-"
C:\Users\John\samp03x_svr_R1-2_win32\gamemodes\MyFrist.pwn(101) : warning 215: expression has no effect
C:\Users\John\samp03x_svr_R1-2_win32\gamemodes\MyFrist.pwn(101) : warning 215: expression has no effect
C:\Users\John\samp03x_svr_R1-2_win32\gamemodes\MyFrist.pwn(101) : warning 215: expression has no effect
C:\Users\John\samp03x_svr_R1-2_win32\gamemodes\MyFrist.pwn(101) : warning 215: expression has no effect
C:\Users\John\samp03x_svr_R1-2_win32\gamemodes\MyFrist.pwn(101) : warning 215: expression has no effect
C:\Users\John\samp03x_svr_R1-2_win32\gamemodes\MyFrist.pwn(101) : error 001: expected token: ";", but found ")"
C:\Users\John\samp03x_svr_R1-2_win32\gamemodes\MyFrist.pwn(101) : error 029: invalid expression, assumed zero
C:\Users\John\samp03x_svr_R1-2_win32\gamemodes\MyFrist.pwn(101) : fatal error 107: too many error messages on one line



Re: Health Pickup. - Ballu Miaa - 04.09.2013

I guess the Line 101 is this:
pawn Код:
SetPlayerHealth(Playerid, 100);
Change it to:
pawn Код:
SetPlayerHealth(playerid, 100);



Re: Health Pickup. - Konstantinos - 04.09.2013

Код:
CreatePickup(1240, 2, 2031.0740,-1404.0616,17.2653, -1);
After 1240 there was missing a comma.


Re: Health Pickup. - BoU3A - 04.09.2013

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
I guess the Line 101 is this:
pawn Код:
SetPlayerHealth(Playerid, 100);
Change it to:
pawn Код:
SetPlayerHealth(playerid, 100);
im really stupid lol ty


Re: Health Pickup. - BoU3A - 04.09.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Код:
CreatePickup(1240, 2, 2031.0740,-1404.0616,17.2653, -1);
After 1240 there was missing a comma.
ty bro u helped me alot 1rep


Re: Health Pickup. - Ballu Miaa - 04.09.2013

Quote:
Originally Posted by BoU3A
Посмотреть сообщение
ty bro u helped me alot 1rep
No problem mate, Glad i could help. Remember Pawn is case sensitive language that means:

new Ballu; is not equal to : new ballu; , both are different for the Compiler as both have different ASCII Values.

Cheers!