Ok so i delete #pragma tabsize 0 and i get rid of all of those LOOSE IDENTITATION or something like that.
But my commands wont work InGame... Help please
Код:
F:\SAMP SERVER\gamemodes\grandlarc.pwn(71) : warning 219: local variable "X" shadows a variable at a preceding level
F:\SAMP SERVER\gamemodes\grandlarc.pwn(71) : warning 219: local variable "Y" shadows a variable at a preceding level
F:\SAMP SERVER\gamemodes\grandlarc.pwn(71) : warning 219: local variable "Z" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Warnings.
And my OnPlayerCommandText -->
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
{
if(strcmp("/vehokreni", cmdtext, true) == 0)
{
new currentveh;
new Float:angle;
currentveh = GetPlayerVehicleID(playerid);
GetVehicleZAngle(currentveh, angle);
SetVehicleZAngle(currentveh, angle);
SendClientMessage(playerid, 0x33CCFFAA, "Preokrenuo si vozilo.");
return 1;
}
if (!strcmp(cmdtext,"/vehpopravi"))
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "Nisi u vozilu!");
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0x33CCFFAA, "Popravio si vozilo!");
return 1;
}
if(!strcmp(cmdtext, "/kreirajv", true))
{
if(!strcmp(cmdtext, "/kreirajv", true))
{
ShowPlayerDialog(playerid, vmenu, DIALOG_STYLE_LIST, "Spawn Vozila", "Sultan \nInfernus \nMaverick \nNRG-500", "Spawn", "Cancel");
return 1;
}
}
if (strcmp("/taxio", cmdtext, true, 10) == 0)
{
MoveObject(object,1269.91210938,-1842.36523438,15.17082977, 2.00);
SetTimer("close", 7000, 0);//gate will be closed for 7 seconds
SendClientMessage(playerid,0x33CCFFAA,"Kapija se otvara i za 7 sekundi ce biti automatski zatvorena.");
return 1;}
}
return SendClientMessage(playerid, 0x999999AA, "WTF: Upisao si nepoznatu komandu.");
}
Did i put something wrong here or?
Is this correct-->
Код:
return SendClientMessage(playerid, 0x999999AA, "WTF: Upisao si nepoznatu komandu.");