if (strcmp(cmdtext, "/vagis", true)==0) { new Float:X, Float:Y, Float:Z, Float:Angle; if(stipnieks != 0) { return SendClientMessage(playerid, COLOR_GREY, "Turnirs vel nav sacies!"); } GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, Angle); if(carer[playerid] == 1) { if(IsAnyPlayerInVehicle(Veh[playerid])) { for(new i=0; i<GetMaxPlayers(); i++) { if(GetPlayerVehicleID(i) == Veh[playerid]) { RemovePlayerFromVehicle(i); } } } PutPlayerInVehicle(playerid, Veh[playerid], 0); SetVehiclePos(Veh[playerid], X, Y, Z); SetVehicleZAngle(Veh[playerid], Angle); } else { carer[playerid] = 1; Veh[playerid] = CreateVehicle(583, X, Y, Z+50, Angle, Colors[random(sizeof Colors)], Colors[random(sizeof Colors)], 10000); PutPlayerInVehicle(playerid, Veh[playerid], 0); SetVehiclePos(Veh[playerid], X, Y, Z); SetVehicleZAngle(Veh[playerid], Angle); return 1; } |
if (strcmp(cmdtext, "/vagis", true) == 0)
{
new Float:X, Float:Y, Float:Z, Float:Angle;
if(stipnieks != 0) return SendClientMessage(playerid, COLOR_GREY, "Turnirs vel nav sacies!");
else
{
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
if(carer[playerid] == 1)
{
if(IsAnyPlayerInVehicle(Veh[playerid]))
{
for(new i=0; i<GetMaxPlayers(); i++)
{
if(GetPlayerVehicleID(i) == Veh[playerid])
{
RemovePlayerFromVehicle(i);
}
}
}
PutPlayerInVehicle(playerid, Veh[playerid], 0);
SetVehiclePos(Veh[playerid], X, Y, Z);
SetVehicleZAngle(Veh[playerid], Angle);
}
else
{
carer[playerid] = 1;
Veh[playerid] = CreateVehicle(583, X, Y, Z+50, Angle, Colors[random(sizeof Colors)], Colors[random(sizeof Colors)], 10000);
PutPlayerInVehicle(playerid, Veh[playerid], 0);
SetVehiclePos(Veh[playerid], X, Y, Z);
SetVehicleZAngle(Veh[playerid], Angle);
return 1;
}
}
C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(131) : error 017: undefined symbol "IsAnyPlayerInVehicle" C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(157) : error 029: invalid expression, assumed zero C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(157) : error 004: function "OnVehicleDeath" is not implemented C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(160) : error 017: undefined symbol "vehicleid" C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(161) : error 017: undefined symbol "vehicleid" C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(16 ![]() C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(16 ![]() C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(16 ![]() C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(170) : error 017: undefined symbol "vehicleid" C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(175) : warning 225: unreachable code C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(175) : error 029: invalid expression, assumed zero C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(175) : error 004: function "OnPlayerPickUpPickup" is not implemented C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(204) : error 030: compound statement not closed at the end of file (started at line 91) |
if (strcmp(cmdtext, "/vagis", true) == 0)
{
new Float:X, Float:Y, Float:Z, Float:Angle;
if(stipnieks != 0) return SendClientMessage(playerid, COLOR_GREY, "Turnirs vel nav sacies!");
else
{
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
if(carer[playerid] == 1)
{
if(IsPlayerInAnyVehicle(Veh[playerid]))
{
for(new i=0; i<GetMaxPlayers(); i++)
{
if(GetPlayerVehicleID(i) == Veh[playerid])
{
RemovePlayerFromVehicle(i);
}
}
}
}
}
}
C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(143) : error 029: invalid expression, assumed zero C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(143) : error 004: function "OnVehicleDeath" is not implemented C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(146) : error 017: undefined symbol "vehicleid" C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(147) : error 017: undefined symbol "vehicleid" C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(152) : error 029: invalid expression, assumed zero C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(152) : error 017: undefined symbol "IsAnyPlayerInVehicle" C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(153) : warning 219: local variable "i" shadows a variable at a preceding level C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(154) : error 017: undefined symbol "vehicleid" C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(159) : warning 225: unreachable code C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(159) : error 029: invalid expression, assumed zero C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(159) : error 004: function "OnPlayerPickUpPickup" is not implemented C:\Documents and Settings\1234\Desktop\Serveris un citas fīčas\SA-MP Serveris\gamemodes\WID1.pwn(18 ![]() |