problem on GetPlayer3DZone function
#1

PHP код:
stock GetPlayer3DZone(playerid)
{
new 
zone[32] = "San Andreas";
new 
Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
for(new 
i = 0; i < sizeof(SanAndreasZones); i++)
{
if(
x >= SanAndreasZones[i][Zone_Area][0] && x <= SanAndreasZones[i][Zone_Area][3]
&& 
y >= SanAndreasZones[i][Zone_Area][1] && y <= SanAndreasZones[i][Zone_Area][4]
&& 
z >= SanAndreasZones[i][Zone_Area][2] && z <= SanAndreasZones[i][Zone_Area][5])
{
strcpy(zone, sizeof(zone), SanAndreasZones[i][Zone_Name]);
return 
zone;
}
}
return 
zone;
} 
Error:
PHP код:
error 035: argument type mismatch (argument 2)
On this line: strcpy(zone, sizeof(zone), SanAndreasZones[i][Zone_Name]); 
Reply


Messages In This Thread
problem on GetPlayer3DZone function - by NeyMar96 - 10.09.2011, 08:34
Re: problem on GetPlayer3DZone function - by =WoR=Varth - 10.09.2011, 08:54
Re: problem on GetPlayer3DZone function - by NeyMar96 - 10.09.2011, 09:06
Re: problem on GetPlayer3DZone function - by =WoR=G4M3Ov3r - 10.09.2011, 09:25
Re: problem on GetPlayer3DZone function - by =WoR=Varth - 10.09.2011, 09:30

Forum Jump:


Users browsing this thread: 1 Guest(s)