02.09.2011, 10:31
OnDialogResponse
Errors & Warnings:
In this lines:
pawn Код:
if(dialogid == 2021)
{
if(response)
{
new UserPath[MAX_STRING];
new Float:X,Float:Y,Float:Z;
format(UserPath,sizeof(UserPath),"Positions/%s.ini",GetName(playerid));
if(dini_Exists(UserPath))
{
X = dini_Get(UserPath,"PositionX");
Y = dini_Get(UserPath,"PositionY");
Z = dini_Get(UserPath,"PositionZ");
}
SetPlayerPos(playerid,X,Y,Z);
}
else
{
SetPlayerSpawn(playerid);
}
return 1;
}
Код:
error 006: must be assigned to an array error 006: must be assigned to an array error 006: must be assigned to an array
pawn Код:
X = dini_Get(UserPath,"PositionX");
Y = dini_Get(UserPath,"PositionY");
Z = dini_Get(UserPath,"PositionZ");