Displaying position?
#1

Код:
	if (strcmp("/mypos", cmdtext, true, 10) == 0)
	{
  		new Float:x, Float:y, Float:z;
 		GetPlayerPos(playerid, x, y, z);
 		SendClientMessage(playerid, COLOR_REDTRANS, "Displaying position... Loaded...");
		format(string, sizeof(string), "Your position: %s, %s, %s.", x, y, z);
		return 1;
	}
That's my code, but I get this:
Quote:

C:\Users\James\Desktop\SAMP Server\gamemodes\ReelWurld.pwn(124) : error 017: undefined symbol "string"
C:\Users\James\Desktop\SAMP Server\gamemodes\ReelWurld.pwn(124) : error 017: undefined symbol "string"
C:\Users\James\Desktop\SAMP Server\gamemodes\ReelWurld.pwn(124) : error 029: invalid expression, assumed zero
C:\Users\James\Desktop\SAMP Server\gamemodes\ReelWurld.pwn(124) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Reply


Messages In This Thread
Displaying position? - by jameskmonger - 11.11.2009, 19:26
Re: Displaying position? - by CAR - 11.11.2009, 19:36
Re: Displaying position? - by smoker08 - 11.11.2009, 19:39
Re: Displaying position? - by radhakr - 11.11.2009, 19:46
Re: Displaying position? - by smoker08 - 11.11.2009, 19:55
Re: Displaying position? - by Brendan_Thomson - 11.11.2009, 20:22
Re: Displaying position? - by radhakr - 11.11.2009, 20:50
Re: Displaying position? - by (.Aztec); - 11.11.2009, 20:53
Re: Displaying position? - by Daren_Jacobson - 11.11.2009, 21:07
Re: Displaying position? - by (.Aztec); - 11.11.2009, 21:09

Forum Jump:


Users browsing this thread: 2 Guest(s)