19.07.2016, 01:28
Quote:
No tienes definido la variable pModelid, te recomendarнa que en los inicios la pongas como:
PHP код:
|
![Huh?](images/smilies/confused.gif)
Код:
D:\Test\gamemodes\Test.pwn(63217) : error 001: expected token: ",", but found "[" D:\Test\gamemodes\Test.pwn(63217) : error 029: invalid expression, assumed zero D:\Test\gamemodes\Test.pwn(63217) : error 017: undefined symbol "d" D:\Test\gamemodes\Test.pwn(63217) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++) if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[playerid][d][pvId])) for (new i = 0; i < count; i++) if(listitem == i){
Код:
if(dialogid == UNMODCARMENU) { new count = GetPVarInt(playerid, "modCount"); for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++) if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[playerid][d][pvId])) for (new i = 0; i < count; i++) if(listitem == i){ format(szDialog, sizeof(szDialog), "partList%i", i); new partID = GetPVarInt(playerid, szDialog); if (partID == 999){ for(new f = 0 ; f < MAX_MODS; f++){ RemoveVehicleComponent(PlayerVehicleInfo[playerid][d][pvId], GetVehicleComponentInSlot(PlayerVehicleInfo[playerid][d][pvId], f)); PlayerVehicleInfo[playerid][d][pvMods][f] = 0; } return SendClientMessage(playerid, COLOR_WHITE, "Todas las modificaciones se han eliminado de tu vehнculo."); } RemoveVehicleComponent(GetPlayerVehicleID(playerid), partID); PlayerVehicleInfo[playerid][d][pvMods][GetVehicleComponentType(partID)] = 0; return SendClientMessage(playerid, COLOR_WHITE, "La modificaciуn que has seleccionado fue eliminado."); } }