How to fix this error
#1

I found this somewhere at sa:mp forums

Quote:

if(!strcmp(cmd, "/vec", true))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0x33CCFFAA, "Use: /vec [voertuig ID]");
return 1;
}
new vecid = strval(tmp);
if(vecid >= 400 && vecid <= 611)
{

new FloatX, FloatY, FloatZ, Float: pA;
GetPlayerPos(playerid, pX, pY, pZ); GetPlayerFacingAngle(playerid, pA);

CreateVehicle(vecid, pX, pY, pZ, pA, -1, -1, 900);


SendClientMessage(playerid, 0x33CCFFAA, string);
return 1;
}

else
{
SendClientMessage(playerid, 0x33CCFFAA, "Wrong vehicle ID");
}
return 1;
}

And i fixed 3 errors with corols but i dunno how to fix this

E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1265) : error 017: undefined symbol "cmd"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1267) : error 017: undefined symbol "tmp"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1267) : error 017: undefined symbol "strtok"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(126 : error 017: undefined symbol "tmp"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1273) : error 017: undefined symbol "tmp"
E:\Gymkhana Freeroam\gamemodes\gymkhana11.pwn(1283) : error 017: undefined symbol "string"


Help pls
Reply


Messages In This Thread
How to fix this error - by Gotti_ - 02.02.2011, 14:56
AW: How to fix this error - by !Phoenix! - 02.02.2011, 15:14
Re: How to fix this error - by Steven Paul - 02.02.2011, 15:14
[No subject] - by Gotti_ - 02.02.2011, 20:23

Forum Jump:


Users browsing this thread: 1 Guest(s)