Jump to content
  • 0

Problema mare la TextDraw(din GameMode)

Guest Alxxie


Tocmai faceam un GameMode.Am vrut sa-i pun un text draw dar problema este ca nu imi apare cand sunt pe server.Totul merge perfect inafara de faptul ca text draw-ul nu apare.

Sus dupa define color....etc am pus:

new Text:Zi;
Dupa public OnGameModeInit() am pus(dupa astea am si AddPlayerClass..etc):
Zi = TextDrawCreate(390,491,"ZOMBIE INVADATION");
Dupa public OnPlayerConnect(playerid) am pus(pun tot ce este):
	TextDrawShowForPlayer(playerid, Zi);

	SendClientMessage(playerid, COLOR_RED, "Bine ai venit pe serverul nostru!Pentru ajutor scrie /help");

    new pName[MAX_PLAYER_NAME];
    new string[48];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "%s a intrat pe server.", pName);
    SendClientMessageToAll(0xE2E2E2FF, string);
    return 1;

Unde am gresit? ??? L-am compilat fara nicio problema.Sa-mi zica zica cineva unde e "buba" :).

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

la OnGameModeInIt nu cred ca trebuia pusa {, sterge-o si vezi daca face tot asa..la mine am avut un speedometer si nu mi se vedea cel pus de mine apoi l-am scos si a mers..

Imi da 3 erori daca sterg acolada aia.

D:\Jocuri\PENTRU~2\SCRIPT~1\GMZOMB~1\zb.pwn(22) : error 021: symbol already defined: "TextDrawFont"
D:\Jocuri\PENTRU~2\SCRIPT~1\GMZOMB~1\zb.pwn(29) : error 021: symbol already defined: "AddPlayerClass"
D:\Jocuri\PENTRU~2\SCRIPT~1\GMZOMB~1\zb.pwn(38) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

3 Errors.

Alte variante? :(

Link to comment
Share on other sites

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.