Health Pickup.
#1

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
Reply
#2

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

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

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
Reply
#5

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
Reply
#6

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!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)