04.06.2011, 16:20
Quote:
I have three errors
Код:
C:\Documents and Settings\user\Desktop\server samp\gamemodes\Stunt.pwn(522) : warning 219: local variable "x" shadows a variable at a preceding level C:\Documents and Settings\user\Desktop\server samp\gamemodes\Stunt.pwn(522) : warning 219: local variable "y" shadows a variable at a preceding level C:\Documents and Settings\user\Desktop\server samp\gamemodes\Stunt.pwn(522) : warning 219: local variable "z" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings. |

EDIT: done it for you
pawn Код:
if(strcmp(cmd, "/car", true)==0)
{
new tmp[256],tmp2[256], tmp3[256];
tmp = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
tmp3 = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xFFFFFFAA, "Usage: /car [VehicleID] [Color]");
if(!strlen(tmp2)) return SendClientMessage(playerid, 0xFFFFFFAA, "Usage: /car [VehicleID] [Color]");
new vehid = strval(tmp2);
new vehcolor = strval(tmp3);
new Float:Px,Float:Py,Float:Pz,Float:Pa;
GetPlayerPos(playerid,Px,Py,Pz);
GetPlayerFacingAngle(playerid, Pa);
CreateVehicle(vehid, Px,Py,Pz,Pa, vehcolor, vehcolor, 60);
return 1;
}