Warnings need help.
#1

Code:
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(8927) : error 017: undefined symbol "ManualVehicleEngineAndLights"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9341) : error 017: undefined symbol "SetVehicleParamsEx"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9340) : warning 204: symbol is assigned a value that is never used: "coche"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9406) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9406) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9407) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9407) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9408) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9408) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9409) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9409) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9410) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9410) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9411) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9411) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9412) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9612) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9612) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9613) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9613) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9614) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9614) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9615) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9615) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9616) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9616) : error 017: undefined symbol "RemovePlayerAttachedObject"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9617) : error 017: undefined symbol "IsPlayerAttachedObjectSlotUsed"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
((This is in line 8927))
Code:
ManualVehicleEngineAndLights();
((this is line 9340))
Code:
new coche = GetPlayerVehicleID(playerid);
(( This is line 9341 ))
Code:
SetVehicleParamsEx(coche, 1, 0, -1, 0, 0, 0, 0);
((This is lines 9341 and 9340))

Code:
   PutPlayerInVehicle(playerid,67, 0);
      		new coche = GetPlayerVehicleID(playerid);
   	SetVehicleParamsEx(coche, 1, 0, -1, 0, 0, 0, 0);
      		TogglePlayerControllable(playerid, true); 
			SetPlayerColor(playerid, BLANCO2);
			gTeam[playerid] = EHUMANO;
((lines 9406 to 9412))
Code:
if(IsPlayerAttachedObjectSlotUsed(playerid, 0)) RemovePlayerAttachedObject(playerid, 0);
    if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1);
    if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 2);
  if(IsPlayerAttachedObjectSlotUsed(playerid, 3)) RemovePlayerAttachedObject(playerid, 3); 
    if(IsPlayerAttachedObjectSlotUsed(playerid, 4)) RemovePlayerAttachedObject(playerid, 4);
    if(IsPlayerAttachedObjectSlotUsed(playerid, 5)) RemovePlayerAttachedObject(playerid, 5);
 	RemovePlayerAttachedObject(playerid,0);
((lines 9612 to 9617))
Code:
if(IsPlayerAttachedObjectSlotUsed(playerid, 0)) RemovePlayerAttachedObject(playerid, 0);
    if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1);
    if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 2);
    if(IsPlayerAttachedObjectSlotUsed(playerid, 3)) RemovePlayerAttachedObject(playerid, 3); 
    if(IsPlayerAttachedObjectSlotUsed(playerid, 4)) RemovePlayerAttachedObject(playerid, 4);
    if(IsPlayerAttachedObjectSlotUsed(playerid, 5)) RemovePlayerAttachedObject(playerid, 5);
If anyone knows how to fix this,can you tell me how..?
Reply
#2

ManualVehicleEngineAndLights must be in OnGameModeInit()
ManualVehicleEngineAndLights @ SAMP Wiki
Reply
#3

You didn't defined

IsPlayerAttachedObjectSlotUsed

RemovePlayerAttachedObject

ManualVehicleEngineAndLights

SetVehicleParamsEx

define them.. and errors will be cleared.
Reply
#4

Give me the define code if you could please
Reply
#5

pawn Code:
new IsPlayerAttachedObjectSlotUsed(playerid, index);
pawn Code:
new RemovePlayerAttachedObject(playerid, index);
pawn Code:
new SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
Correct me If I am wrong..
Reply
#6

Other errors
Code:
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(49) : error 001: expected token: ";", but found "("
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(50) : error 001: expected token: ";", but found "("
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(51) : error 001: expected token: ";", but found "("
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(1590) : error 017: undefined symbol "ManualVehicleEngineAndLights"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9347) : error 012: invalid function call, not a valid address
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9347) : warning 215: expression has no effect
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9347) : warning 215: expression has no effect
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9347) : warning 215: expression has no effect
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9347) : warning 215: expression has no effect
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9347) : warning 215: expression has no effect
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9347) : warning 215: expression has no effect
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9347) : warning 215: expression has no effect
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9347) : warning 215: expression has no effect
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9347) : error 001: expected token: ";", but found ")"
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9347) : error 029: invalid expression, assumed zero
C:\Users\Medo\Desktop\SERVER\gamemodes\newZombie.pwn(9347) : fatal error 107: too many error messages on one line
Line 49,50,51
Code:
new IsPlayerAttachedObjectSlotUsed(playerid, index);
new RemovePlayerAttachedObject(playerid, index);
new SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
line 9346
Code:
SetVehicleParamsEx(coche, 1, 0, -1, 0, 0, 0, 0);
9347 LINE
Code:
TogglePlayerControllable(playerid, true);
And you didnt give me the manual vehile and light define.
Reply
#7

Change
pawn Code:
new IsPlayerAttachedObjectSlotUsed(playerid, index);
new RemovePlayerAttachedObject(playerid, index);
new SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
to
pawn Code:
new IsPlayerAttachedObjectSlotUsed[playerid, index];
new RemovePlayerAttachedObject[playerid, index];
new SetVehicleParamsEx[vehicleid, engine, lights, alarm, doors, bonnet, boot, objective];
and about ManualVehicleEngineAndLights
add this line here
pawn Code:
public OnGameModeInit()
{
ManualVehicleEngineAndLights();
}
Reply
#8

Do you have skype? cause i keep getting errors,if you have,then i could give you the script,and you do this stuff,cause i am not really a scripter. not a pro, neither a basic.
Reply
#9

Quote:
Originally Posted by Jarnu
View Post
pawn Code:
new IsPlayerAttachedObjectSlotUsed(playerid, index);
pawn Code:
new RemovePlayerAttachedObject(playerid, index);
pawn Code:
new SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
Correct me If I am wrong..
You are wrong.


You have missing or improperly placed brackets.
Reply
#10

MP2,could i....? umm give you the script like over skype or something,and you fix it?,its not much warning,i really need the script like today or tomm
Reply
#11

No. Depending on how big your script is it could take ages to find the mis-placed bracket.

Also you don't need to use IsPlayerAttachedObjectSlotUsed before removing an attached object - just remove it anyway. It's not going to break if it's not attached - it will simply do nothing.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)