Scrpt-errors
#1

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

Do you have the CMD system included?
Reply
#3

Download [Include] ZCMD by Zeex
Reply
#4

Yay it works now ! I salute you - thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)