Jump to content
  • 0

[Problema] Compilare - Code


Question

Posted

Salut, am un Gamemode tip B-zone si am urmatoarea problema la compilare : 

C:\Users\Andrei\Desktop\B-zone\gamemodes\localhost.pwn(19374) : error 012: invalid function call, not a valid address
C:\Users\Andrei\Desktop\B-zone\gamemodes\localhost.pwn(19374) : warning 215: expression has no effect
C:\Users\Andrei\Desktop\B-zone\gamemodes\localhost.pwn(19374) : error 001: expected token: ";", but found ")"
C:\Users\Andrei\Desktop\B-zone\gamemodes\localhost.pwn(19374) : error 029: invalid expression, assumed zero
C:\Users\Andrei\Desktop\B-zone\gamemodes\localhost.pwn(19374) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
------------------------------------

Mai jos aveti linia de cod a erorii:

format(string, sizeof(string), "** %s are nevoie de un Taximetrist, Locatie: %s (SF). (scrie /accept taxi %d pentru a accepta)", GetName(playerid) ,GetPlayerArea(playerid),playerid);

 

------------------------------------

Si aici este mai mult codding din gamemode:

if(TaxiDrivers == 0) return SendClientMessage(playerid, COLOR_OOC, "Momentan nu sunt taximetristi la datorie.");
        if(IsPlayerInArea(playerid, -2997.40, -1115.50, -1213.90, 1659.60)) {
            format(string, sizeof(string), "** %s are nevoie de un Taximetrist, Locatie: %s (SF). (scrie /accept taxi %d pentru a accepta)", GetName(playerid) ,GetPlayerArea(playerid),playerid);
            SendTeamMessage(13,COLOR_OOC,string);
            SendTeamMessage(16,COLOR_OOC,string);
            SendTeamMessage(17,COLOR_OOC,string);
        }

 

4 answers to this question

Recommended Posts

  • 0
Posted

Este facuta din capul tau sau vazuta undeva?

 

CMD:credits(playerid, params[]) {
	SendClientMessage(playerid,-1,"Munca depusa merita rasplatita #respect");
	return 1;
}

 

  • 0
Posted

Nu ma pricep , da ce e acolo nu are logica

 

CMD:credits(playerid, params[]) {
	SendClientMessage(playerid,-1,"Munca depusa merita rasplatita #respect");
	return 1;
}

 

  • 0
Posted (edited)

Stiu ca imi trebuie codul asta new GetPlayerArea[MAX_PLAYERS]; setat undeva, dar nu stiu unde, ca altfel imi da mai multe erori care prima eroare contine aceeasi linie de cod a erorii

Edited by Datcu

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.