SA-MP Forums Archive
1 error - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 1 error (/showthread.php?tid=85865)



1 error - Geekzor - 10.07.2009

guys can u help me with this error how i can fix it ?

here is my GAMEMODE :

http://pastebin.com/d3ae51b06

and this is error

C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\te st.pwn(356) : error 017: undefined symbol "vehicleid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

EDIT: i put under Onplayerenteccheckpoint

new vehicleid;

it dont find errors but when i connect in my game the checkpoint dont show up on my map -.-

any help ?


Re: 1 error - Correlli - 10.07.2009

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
  SetPlayerCheckpoint(playerid, 648.8143,1687.6963,6.9922,3.0);
  if(IsPlayerInAnyVehicle(playerid))
  {
  SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
  SendClientMessage(playerid, 0x33CCFFAA,"You Have Repaired Your Vehicle, And You Have Payed $100");
  }
  return 1;
}
And max. health for vehicle is 1000.0 and not 100.0, 100.0 would destroy it.


Re: 1 error - charles30 - 10.07.2009

add in your public
Код:
new vehicleid;



Re: 1 error - abhinavdabral - 10.07.2009

Remeber vehicleid is not the Vehicle model number...


Re: 1 error - Correlli - 10.07.2009

Quote:
Originally Posted by charles30
add in your public
Код:
new vehicleid;
That won't work.


Re: 1 error - yezizhu - 10.07.2009

Код:
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerCheckpoint(playerid, 648.8143,1687.6963,6.9922,3.0);
SetVehicleHealth(vehicleid, 100.0);
SendClientMessage(playerid, 0x33CCFFAA,"You Have Repaired Your Vehicle, And You Have Payed $100");
return 1;
}
to
Код:
public OnPlayerEnterCheckpoint(playerid){
  SetPlayerCheckpoint(playerid, 648.8143,1687.6963,6.9922,3.0);
  if(SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0)){
    SendClientMessage(playerid,0x33CCFFAA,"You Have Repaired Your Vehicle, And You Have Payed $100");
  }
return 1;
}



Re: 1 error - Geekzor - 10.07.2009

thank you guys

but i want to know a bit more if u can tell me how to do

about this ... ye my car is repaired now but how i can make when i come to this checkpoint it show mesage just once
atm message come to chat 100000x times if i am in checkpoint when i leave checkpoint its ok ...

1. How i can Fix mesage spam? check this pic:
/imageshack/i/samp448.png/

2. How i can make when Playercome to checkpoint he pay $100

EDIT:

3. How i can make when player come fith vehicle that have ''1000.0'' life - full life/health the mesage show up with RED:
''You Dont Need To Repair Your Vehicle''

4. And how i can make on this checkpoint ''picture'' repair key

5. and how to make: when player spawn he DONT see checkpoint on the map:
/imageshack/i/samp446.png/

just when is player near checpoint he see it on map...
/imageshack/i/samp447.png/

HERE IS MY GAMEMODE: http://pastebin.com/d476514e4

now i think i tell all my problems

i need to just fix that please help

ty



Re: 1 error - yezizhu - 10.07.2009

Quote:
Originally Posted by Geekzor
thank you guys

but i want to know a bit more if u can tell me how to do

about this ... ye my car is repaired now but how i can make when i come to this checkpoint it show mesage just once
atm message come to chat 100000x times if i am in checkpoint when i leave checkpoint its ok ...

1. How i can Fix mesage spam? check this pic:
/imageshack/i/samp448.png/

2. How i can make when Playercome to checkpoint he pay $100

EDIT:

3. How i can make when player come fith vehicle that have ''1000.0'' life - full life/health the mesage show up with RED:
''You Dont Need To Repair Your Vehicle''

4. And how i can make on this checkpoint ''picture'' repair key

5. and how to make: when player spawn he DONT see checkpoint on the map:
/imageshack/i/samp446.png/

just when is player near checpoint he see it on map...
/imageshack/i/samp447.png/

HERE IS MY GAMEMODE: http://pastebin.com/d476514e4

now i think i tell all my problems

i need to just fix that please help

ty
Quote:
Originally Posted by Geekzor
thank you guys

but i want to know a bit more if u can tell me how to do

about this ... ye my car is repaired now but how i can make when i come to this checkpoint it show mesage just once
atm message come to chat 100000x times if i am in checkpoint when i leave checkpoint its ok ...

1. How i can Fix mesage spam? check this pic:
/imageshack/i/samp448.png/

2. How i can make when Playercome to checkpoint he pay $100

EDIT:

3. How i can make when player come fith vehicle that have ''1000.0'' life - full life/health the mesage show up with RED:
''You Dont Need To Repair Your Vehicle''

4. And how i can make on this checkpoint ''picture'' repair key

5. and how to make: when player spawn he DONT see checkpoint on the map:
/imageshack/i/samp446.png/

just when is player near checpoint he see it on map...
/imageshack/i/samp447.png/

HERE IS MY GAMEMODE: http://pastebin.com/d476514e4

now i think i tell all my problems

i need to just fix that please help

ty
Too complex for me to do...


Re: 1 error - Geekzor - 10.07.2009

i just want someone who can fix thext spam or something ...


Re: 1 error - Geekzor - 10.07.2009

sry for dubble post but cmon guys can u try to help its a bit much but i must learn