15.08.2013, 22:52
Galera, quero criar um comando(/salvepos) que salve a posicao do player e imprima na tela a mgs:
"Sua posicao e: X = ******* \n Y = ****** \n Z = ******* \n A = *******);
fiz assim:
Mas deu esses erros:
O que faco?
"Sua posicao e: X = ******* \n Y = ****** \n Z = ******* \n A = *******);
fiz assim:
pawn Код:
if(strcmp("/salvepos", cmdtext, true, 10) == 0)
{
new Float:PosX;
new Float:PosY;
new Float:PosZ;
new Float:Angulo;
GetPlayerPos(playerid, PosX, PosY, PosZ, Angulo);
SendClientMessage(playerid, -1, "Sua posicao e: X = %f \n Y = %f \n Z = %f \n A = %f", PosX, PosY, PosZ, Angulo);
return 1;
}
pawn Код:
C:\Users\Usuario\Desktop\Server TDM\gamemodes\teste.pwn(107) : warning 202: number of arguments does not match definition
C:\Users\Usuario\Desktop\Server TDM\gamemodes\teste.pwn(108) : warning 202: number of arguments does not match definition
C:\Users\Usuario\Desktop\Server TDM\gamemodes\teste.pwn(108) : warning 202: number of arguments does not match definition
C:\Users\Usuario\Desktop\Server TDM\gamemodes\teste.pwn(108) : warning 202: number of arguments does not match definition
C:\Users\Usuario\Desktop\Server TDM\gamemodes\teste.pwn(108) : warning 202: number of arguments does not match definition
C:\Users\Usuario\Desktop\Server TDM\gamemodes\teste.pwn(106) : warning 203: symbol is never used: "Angulo"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Warnings.