10.09.2011, 08:34
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;
}
PHP код:
error 035: argument type mismatch (argument 2)
On this line: strcpy(zone, sizeof(zone), SanAndreasZones[i][Zone_Name]);

