08.08.2009, 16:46
So I'm new at scripting, but unlike 99% of the other posts here that say that, I read through multiple guides and tutorials on pawno.
I wrote this mini little script:
public OnVehicleSpawn(vehicleid)
{
new vehicle = GetPlayerVehicleID(playerid);
AddVehicleComponent(vehicle, 1010);
return 1;
}
But I cant seem to find out why I get this error:
C:\Documents and Settings\Administrator\Desktop\SAMP\sampserver\fil terscripts\infinitenitro.pwn(63) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Can you please help me out?
PS: how do you paste pawno codes here in the samp forums the proper way? i cant seem to figure it out.
I wrote this mini little script:
public OnVehicleSpawn(vehicleid)
{
new vehicle = GetPlayerVehicleID(playerid);
AddVehicleComponent(vehicle, 1010);
return 1;
}
But I cant seem to find out why I get this error:
C:\Documents and Settings\Administrator\Desktop\SAMP\sampserver\fil terscripts\infinitenitro.pwn(63) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Can you please help me out?
PS: how do you paste pawno codes here in the samp forums the proper way? i cant seem to figure it out.