30.07.2010, 00:57
Hello Guys I want use cmd to teleport in the area of the DeathMatch then the player can't exit this area .. I use like this but I got some errors
if(!strcmp(cmdtext,"/dm",true)) {
SendClientMessage(playerid, COLOR_ORANGE,"Welcome to DeathMatch .. Kill Or You'll Be Killed!");
SendClientMessage(playerid, COLOR_RED,"Type /exitdm To Exit The DeathMatch");
SetPlayerPos(playerid, 538.99822998047,-5008.1762695313,54.348358154297);
GameTextForPlayer(playerid, "DeathMatch By WaiM",1500,3);
GivePlayerWeapon(playerid, 24, 99999999);
GivePlayerWeapon(playerid, 26, 99999999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
line (93 SetPlayerWorldBounds(playerid, 1458,873, 1228,487, 2246,867, 2057,332);
return 1;
}
the errors :
.pwn(93 : warning 202: number of arguments does not match definition
.pwn(93 : warning 202: number of arguments does not match definition
.pwn(93 : warning 202: number of arguments does not match definition
.pwn(93 : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Warnings.
if(!strcmp(cmdtext,"/dm",true)) {
SendClientMessage(playerid, COLOR_ORANGE,"Welcome to DeathMatch .. Kill Or You'll Be Killed!");
SendClientMessage(playerid, COLOR_RED,"Type /exitdm To Exit The DeathMatch");
SetPlayerPos(playerid, 538.99822998047,-5008.1762695313,54.348358154297);
GameTextForPlayer(playerid, "DeathMatch By WaiM",1500,3);
GivePlayerWeapon(playerid, 24, 99999999);
GivePlayerWeapon(playerid, 26, 99999999);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
line (93 SetPlayerWorldBounds(playerid, 1458,873, 1228,487, 2246,867, 2057,332);
return 1;
}
the errors :
.pwn(93 : warning 202: number of arguments does not match definition
.pwn(93 : warning 202: number of arguments does not match definition
.pwn(93 : warning 202: number of arguments does not match definition
.pwn(93 : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Warnings.