Jump to content
  • 0

o line proasta


vasy

Question

cum rezolv aceste erori :D

Chiar nu imi pot da seama

[pawn]C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(844) : warning 202: number of arguments does not match definition

C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(844) : error 001: expected token: ",", but found "-string-"

C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(844) : warning 215: expression has no effect

C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(844) : error 001: expected token: ";", but found ")"

C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(844) : error 029: invalid expression, assumed zero

C:\Users\KyLLeR\Desktop\JP trucking\pawno\include\PPC_PlayerCommands.inc(844) : fatal error 107: too many error messages on one line[/pawn]

erorile vin de la comanda asta

[pawn]// Repairs all vehicles

COMMAND:repairall(playerid, params[])

{

new nume[MAX_PLAYER_NAME];

// Send the command to all admins so they can see it

SendAdminText(playerid, "/repairall", params);

// Check if the player has logged in

if (APlayerData[playerid][LoggedIn] == true)

{

// Check if the player's admin-level is at least 3

if (APlayerData[playerid][PlayerLevel] >= 4)

{

// Loop through all vehicles

for (new i; i < 2000; i++)

RepairVehicle(i); // Fully repair the vehicle (damage value and bodywork)

// Send all players a message to inform them that all vehicles have been repaired

SendClientMessageToAll(0x00FF00FF, nume, playerid "Adminul %s[%i] a reparat toate masinile");

}

else

    return 0;

}

else

    return 0;

// Let the server know that this was a valid command

return 1;

}

[/pawn]

respectiv de la aceasta linie [pawn]SendClientMessageToAll(0x00FF00FF, nume, playerid "Adminul %s[%i] a reparat toate masinile");[/pawn]

<a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

am facut asa

[pawn] new string[256];

new nume[MAX_PLAYER_NAME];

format(string, sizeof(string), "Adminul %s (cu id %d) a reparat toate masinile", nume, playerid);

SendClientMessageToAll(0x00FF00FF, string);[/pawn]

dar imi arata numai id nu si numele

<a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

nu ma poate ajuta nimeni?

<a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

funky multumesc de ajutor dar regulamentul interzice sa faci ce ai facut tu

14.Daca cineva i-a explicat problema, nu aveti voie sa dati reply cu acelasi raspuns dar cu alt pretext.

Iar next ai +1rep de la mine

Dati tc

<a href="http://www.game-state.eu/188.212.105.161:7777/"><img src="http://www.game-state.eu/188.212.105.161:7777/430x73_FFFFFF_FF9900_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.