Why do I get this error with this script?
#1

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


Messages In This Thread
Why do I get this error with this script? - by ThePS3Guy - 08.08.2009, 16:46
Re: Why do I get this error with this script? - by Karlip - 08.08.2009, 16:48
Re: Why do I get this error with this script? - by ThePS3Guy - 08.08.2009, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)