07.11.2009, 19:34
Hello there,
I've tried of making /Drunk on and /Drunk off command for my server,Well the /Drunk on command works perfect:
But i have some errors with the /Drunk off command:
The errors are:
Sorry i'm the worst scripter ever.
I'd really appreciate help,Thanks in advance.
I've tried of making /Drunk on and /Drunk off command for my server,Well the /Drunk on command works perfect:
pawn Код:
if (strcmp("/drunk on", cmdtext, true, 8) == 0)
{
SetPlayerDrunkLevel (playerid, 50000);
GameTextForPlayer(playerid,"~W~Drunk Mode Is ~g~On!",3000,5);
ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
return 1;
}
pawn Код:
if (strcmp("/drunk off", cmdtext, true, 9) == 0)
{
if GetPlayerDrunkLevel(playerid) < 2000)
SendClientMessage(playerid,0xFFFFFFFF,"You are not Drunk!");
else
SetPlayerDrunkLevel (playerid, 0);
GameTextForPlayer(playerid,"~W~Drunk Mode Is ~R~Off!",3000,5);
ClearAnimations(playerid);
return 1;
}
Код:
C:\Users\Gta san andreas\Desktop\Black & White Stunting\gamemodes\BlackNwhite.pwn(875) : error 001: expected token: "*then", but found ")" C:\Users\Gta san andreas\Desktop\Black & White Stunting\gamemodes\BlackNwhite.pwn(875) : error 029: invalid expression, assumed zero C:\Users\Gta san andreas\Desktop\Black & White Stunting\gamemodes\BlackNwhite.pwn(877) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
I'd really appreciate help,Thanks in advance.