Jump to content

Recommended Posts

Posted (edited)

Salut, ma chinui sa gasesc solutia la aceasta problema pe care nu am mai avut o pana acum

Cod:

CMD:MyCard(playerid, params[]) {
	if(PlayerInfo[playerid][pCard] == 0) return SCM(playerid, COLOR_LGREEN, "(MyCard):{FFFFFF} Nu ai un card!");
	else
	new string[100];
	new cn = PlayerInfo[playerid][pCardNumber];
	format(string, sizeof(string), "Here s your card information\n\t\t\n{FF0000}ATTENTION DONT GIVE THESE INFORMATIONS TO ANY PLAYERS\nEVEN IF HE IS AN ADMIN\n\t\t\n Card Number: %d", FormatNumber(cn))
 	ShowPlayerDialog(playerid, DIALOG_MYCARD, DIALOG_STYLE_MSGBOX, "Your Card Information:", string, "Ok", "")

	return 1;
}

ERRORS:
 

(60) : error 003: declaration of a local variable must appear in a compound block
(60) : error 017: undefined symbol "string"
(60) : warning 215: expression has no effect
(60) : error 001: expected token: ";", but found "]"
(60) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2017, ITB CompuPhase


4 Errors.
[Finished in 0.3s]

cred ca e ceva super basic de rezolvat dar chiar nu imi dau seama de la ce e

Edited by Divil.Scorpiono
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.