

C:\Users\Chris\Desktop\Gaming\sampSrv\filterscripts\fs1.pwn(615) : warning 213: tag mismatch C:\Users\Chris\Desktop\Gaming\sampSrv\filterscripts\fs1.pwn(619) : warning 213: tag mismatch C:\Users\Chris\Desktop\Gaming\sampSrv\filterscripts\fs1.pwn(623) : warning 213: tag mismatch C:\Users\Chris\Desktop\Gaming\sampSrv\filterscripts\fs1.pwn(627) : warning 213: tag mismatch C:\Users\Chris\Desktop\Gaming\sampSrv\filterscripts\fs1.pwn(631) : warning 213: tag mismatch C:\Users\Chris\Desktop\Gaming\sampSrv\filterscripts\fs1.pwn(635) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Warnings.
new xxx,yyy,zzz; //these are at the very top of my new playname; //script under #define FILTERSCRIPT
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(j,1,cmdtext);
}
dcmd_j(playerid, params[])
{
#pragma unused params
if(IsPlayerAdmin(playerid))
{
if(params[1] == 1 || params[1] == 2 || params[1] == 3 || params[1] == 4)
{
xxx = 853.75; //615
}
else if(params[1] == 5 || params[1] == 6 || params[1] == 7 || params[1] == 8)
{
xxx = 819.25; //619
}
if(params[1] == 1 || params[1] == 5)
{
yyy = -2245.5; //623
}
else if(params[1] == 2 || params[1] == 6)
{
yyy = -2268.5; //627
}
else if(params[1] == 3 || params[1] == 7)
{
yyy = -2291.5; //631
}
else if(params[1] == 4 || params[1] == 8)
{
yyy = -2314.5; //635
}
zzz = 15;
SetPlayerPos(params[0],xxx,yyy,zzz);
new string[100];
GetPlayerName(params[0],playname,64);
format(string, sizeof(string),"You have jailed %s.", playname);
SendClientMessage(playerid,0x00bb00FF,string);
GetPlayerName(playerid,playname,64);
format(string, sizeof(string),"%s has jailed you!", playname);
SendClientMessage(params[1],0xbb0000FF,string);
}
return 1;
}
|
Originally Posted by Don Correlli
You forgot to set the Float: tag.
|

new Float:xxx,Float:yyy,Float:zzz;

new playname[MAX_PLAYER_NAME];
GetPlayerName(playerid, playname, sizeof(playname));
|
Originally Posted by Phento
pawn Код:
|

, nearly 8 hours past time to go to sleep and time to wake up) of searching anything and everything I could find...new Float:xxx,Float:yyy,Float:zzz,uid,uce;
dcmd_j(playerid, params[])
{
#pragma unused params
if(IsPlayerAdmin(playerid))
{
if(sscanf(params, "ui", uid, uce))
{
SendClientMessage(playerid, 0xff0000FF, "Usage: \"/j [id] [cell]\"");
}
else if(uid == INVALID_PLAYER_ID)
{
SendClientMessage(playerid, 0xFF0000AA, "Player not found");
}
else
{
if(uce == 1 || uce == 2 || uce == 3 || uce == 4)
{
xxx = 853.75;
}
else if(uce == 5 || uce == 6 ||uce == 7 || uce == 8)
{
xxx = 819.25;
}
if(uce == 1 || uce == 5)
{
yyy = -2245.50;
}
else if(uce == 2 || uce == 6)
{
yyy = -2268.50;
}
else if(uce == 3 || uce == 7)
{
yyy = -2291.50;
}
else if(uce == 4 || uce == 8)
{
yyy = -2314.50;
}
zzz = 15.00;
}
}
return 1;
}