Scrpt-errors - 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)
+--- Thread: Scrpt-errors (
/showthread.php?tid=311818)
Scrpt-errors -
Ghost252 - 18.01.2012
CMD:createcar(playerid, params[])
{
new veh,color1,color2;
if (!sscanf(params, "iii", veh, color1,color2))
{
new Float
, Float:y, Float:z;
GetPlayerPos(playerid, x,y,z);
AddStaticVehicle(veh, x,y,z,0,color1, color2);
}
else SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /createcar <carid> <c1> <c2>");
return 1;
}
I tried the code above and I get these errors:
C:\Users\PC\Desktop\SAMP Server\gamemodes\gamemode.pwn(223) : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\SAMP Server\gamemodes\gamemode.pwn(223) : error 017: undefined symbol "cmd_createcar"
C:\Users\PC\Desktop\SAMP Server\gamemodes\gamemode.pwn(223) : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\SAMP Server\gamemodes\gamemode.pwn(223) : fatal error 107: too many error messages on one line
Any help will be appreciated.
Re: Scrpt-errors -
CmZxC - 18.01.2012
Do you have the CMD system included?
Re: Scrpt-errors -
Konstantinos - 18.01.2012
Download
[Include] ZCMD by Zeex
Re: Scrpt-errors -
Ghost252 - 18.01.2012
Yay it works now ! I salute you - thanks.