30.05.2013, 11:28
Quote:
change
pawn Код:
pawn Код:
|
The issue is that Money and pName are not "global mono-dimensional" variables (if that makes any sense?) but they are part of a multi-dimensional enum assigned to each player. In order to call them, you have to use pInfo[playerid][pName] and pInfo[playerid][Money] instead of pName and Money.
This should be correct:
pawn Код:
format(string,sizeof(string),"Your Name: %s \nYour Cash: %d", pInfo[playerid][pName], pInfo[playerid][Money]);