12.04.2014, 00:39
Quote:
pawn Код:
|
eu tentei converter ele para /command ficou assim
pawn Код:
if (strcmp("/carro", cmdtext, true, 10) == 0)
{
new carroid;
new Float:X,Float:Y,Float:Z,Float:Angle;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"[ERRO] Vocк nгo й um administrador!");
if(isnull(params)) return SendClientMessage(playerid, -1, "[ERRO] Uso: /C [Carro ID]");
if(carroid >= 400 && carroid <= 611){
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
carrocriado[totalCV] = AddStaticVehicle(carroid, X, Y, Z, Angle, -1, -1);
PutPlayerInVehicle(playerid,carrocriado[totalCV],0);
if(GetPlayerInterior(playerid))
LinkVehicleToInterior(carrocriado[totalCV],GetPlayerInterior(playerid));
SetVehicleVirtualWorld(carrocriado[totalCV],GetPlayerVirtualWorld(playerid));
new string[200];
format(string, sizeof(string), "* Veнculo criado com sucesso [ID:%d]", carroid);
SendClientMessage(playerid, -1, string);
totalCV++;
}
return 1;
}
pawn Код:
if(isnull(params)) return SendClientMessage(playerid, -1, "[ERRO] Uso: /C [Carro ID]");
Код:
C:\Users\William\Desktop\samp03z_svr_R1_win32\gamemodes\DeathDrift.pwn(419) : error 017: undefined symbol "params" C:\Users\William\Desktop\samp03z_svr_R1_win32\gamemodes\DeathDrift.pwn(419) : error 029: invalid expression, assumed zero C:\Users\William\Desktop\samp03z_svr_R1_win32\gamemodes\DeathDrift.pwn(419) : error 017: undefined symbol "params" C:\Users\William\Desktop\samp03z_svr_R1_win32\gamemodes\DeathDrift.pwn(419) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.