1 error
#1

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

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.
Reply
#3

add in your public
Код:
new vehicleid;
Reply
#4

Remeber vehicleid is not the Vehicle model number...
Reply
#5

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

Код:
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;
}
Reply
#7

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

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...
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)