02.04.2013, 12:24
Hey,
Can someone help me whit this:
I have this error: error 001: expected token: ")", but found "return"
Thanks in advance!
Regards,
Jordyvc
Can someone help me whit this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
if(!strlen(cmdtext[5]) return SendClientMessage(playerid, COLOR_RED, "Usage: /scar [Model ID]");
new veh = strval(cmdtext[5]);
if(veh < 400 || veh > 611) return SendClientMessage(playerid, COLOR_RED, "ERROR: Invalid Vehicle Model");
new Float:x, Float:y, Float:z, Float:a;
GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, a);
CreateVehicle(veh, x,y,z, a, -1, -1, -1);
return 1;
}
return 0;
}
Thanks in advance!
Regards,
Jordyvc