Help Warning
#1

Warnings:
Код:
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\GAMEMO~1\FWRPG.pwn(1325) : warning 213: tag mismatch
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\GAMEMO~1\FWRPG.pwn(1325) : warning 213: tag mismatch
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\GAMEMO~1\FWRPG.pwn(2384) : warning 219: local variable "ftext" shadows a variable at a preceding level
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\GAMEMO~1\FWRPG.pwn(5609) : warning 219: local variable "ftext" shadows a variable at a preceding level
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\GAMEMO~1\FWRPG.pwn(18321) : warning 215: expression has no effect
C:\DOCUME~1\EA3B~1\Desktop\FREAKW~1\GAMEMO~1\FWRPG.pwn(15157) : warning 204: symbol is assigned a value that is never used: "housesale"
LINE 1325---
Код:
new Float:HouseCarSpawns[1][4] = {
{1241,6132.6253,8835.6723,7563}//House 1
};
LINE 2384---
Код:
new ftext[20];
LINE 5609---
Код:
new ftext[20];
LINE 18321--
Код:
GetPlayerNameEx(sendername, playerid, sizeof(giveplayer));
LINE 15157--
Код:
	FIXED
SOMETHING ELSE ?
Reply
#2

idk much but try this:
pawn Код:
new Float:HouseCarSpawns[1][4] = {
{1241,6132.6253,8835.6723,7563};//House 1
change
pawn Код:
ftext [20]// to another name coz it shadows the other 1
make sure you defines GetPlayerNameExor :
pawn Код:
GetPlayerName(targetid, receivername,sizeof(receivername));
idk try this maybe it works or not.
Reply
#3

should i do ftext[19] or to change the ftext?
Reply
#4

The problem is in the float's array, i think so
Reply
#5

REMOVED
Reply
#6

I can't understand you well, use ****** translate or something man
Reply
#7

Quote:
Originally Posted by [/pawn
make sure you defines GetPlayerNameExor :
pawn Код:
GetPlayerName(targetid, receivername,sizeof(receivername));
idk try this maybe it works or not.
i have two GetPlayerName look at the cmd
Код:
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            GetPlayerNameEx(sendername, playerid, sizeof(giveplayer));
                            ShowPlayerDialog(giveplayerid, 981, DIALOG_STYLE_MSGBOX, "Invitation for member","I: %s(sendername) i invite u to work with me in my organization.\n-If u accept press 'Accept'\n-If u refuse press "REFUSE'\nIf u change ur mind call me on my number %d(is this for playernumber ?):","ACcept","Refuse");
Reply
#8

GetPlayerNameEx only has one parameter, and that is 'playerid', it is mostly for use in strings.

Example:
pawn Код:
new string[50];
format(string,sizeof(string),"My name is %s.",GetPlayerNameEx(playerid));
SendClientMessageToAll(0xFFFF00FF, string);
However, GetPlayerName is different and requires saving to a destination/variable.
pawn Код:
new name[MAX_PLAYER_NAME], string[50];
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"My name is %s.",name);
SendClientMessageToAll(0xFFFF00FF, string);
Simply just remove the GetPlayerNameEx line if it is giving you errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)