public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/chief186", true) == 0) {
// Set the player's skin to ID 277, which is a fireman.
SetPlayerSkin(playerid, 275);
GivePlayerWeapon(playerid, COLOR_GOLD, 42, 10000);
SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCFD Chief.");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/chief186", true) == 0) {
// Set the player's skin to ID 277, which is a fireman.
SetPlayerSkin(playerid, 275);
GivePlayerWeapon(playerid, COLOR_GOLD, 42, 10000);
SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCFD Chief.");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/chief186", true) == 0) {
// Set the player's skin to ID 277, which is a fireman.
SetPlayerSkin(playerid, 275);
GivePlayerWeapon(playerid, COLOR_GOLD, 42, 10000);
SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCFD Chief.");
return 1;
}
C:\Documents and Settings\Luca\Desktop\BaseScript\filterscripts\ski ns.pwn(8 ![]() C:\Documents and Settings\Luca\Desktop\BaseScript\filterscripts\ski ns.pwn(95) : warning 202: number of arguments does not match definition |
GivePlayerWeapon(playerid, weaponid, ammo);
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/chief186", true) == 0) {
// Set the player's skin to ID 277, which is a fireman.
SetPlayerSkin(playerid, 275);
GivePlayerWeapon(playerid, 42, 10000);
SendClientMessage(playerid, COLOR_GOLD,"[INFO]You logged in as BCFD Chief.");
return 1;
}
return 0;
}
GivePlayerWeapon(playerid, COLOR_GOLD, 42, 10000);
pawn Код:
|
if(strcmp(cmdtext, "/chief186", true) == 0) {
if (strcmp("/chief186", cmdtext, true, 10) == 0)
lol?
anyway,the 2nd error/warning: You have typed: pawn Код:
pawn Код:
|
C:\Documents and Settings\Luca\Desktop\BaseScript\filterscripts\ski ns.pwn(8 ) : warning 202: number of arguments does not match definition C:\Documents and Settings\Luca\Desktop\BaseScript\filterscripts\ski ns.pwn(95) : warning 202: number of arguments does not match definition
if(strcmp(cmdtext, "/chief186", true) == 0)