ZCMD Command Error [+rep]
#1

FIRST PROBLEM SOLVED
NEW PROBLEM BELOW! (MY LAST REPLY) HELP!
Reply
#2

pawn Код:
CMD:kill(playerid, params[])
{
    new name[MAX_PLAYER_NAME], string[MAX_PLAYER_NAME+13];
    KillPlayer
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s has Sucided", name);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);
    return 1;
}
Reply
#3

Instead of KillPlayer with no ; use SetPlayerHealth(playerid, -1);
Reply
#4

Quote:
Originally Posted by suhrab_mujeeb
Посмотреть сообщение
Instead of KillPlayer with no ; use SetPlayerHealth(playerid, -1);
That Won't kill it obviously (-1HP), -_-.
Working Now, Thanks to BIGeti
Reply
#5

HAHAHAHAH I like ur Signature
Reply
#6

Quote:
Originally Posted by XxGenerationXx
Посмотреть сообщение
HAHAHAHAH I like ur Signature
Thanks

>>>>>>> NEW PROBLEM RELATED TO ZCMD <<<<<<<<<
I'm Making a For-Fun FS Coz i'm Bored, its just a Flak Cannon above A51 (Lots of Em), i'm using ZCMD Because my GM is Using ZCMD (I guess it won't work if i use strcmp). Now here's my code

Quote:

CMD:flakstart(playerid, params[])
{
SetTimer("flak1", 1000, false);
return 1;
}

Warning:
warning 203: symbol is never used: "flakstart"

Its Scripted as

Includes
Forwards
COMMAND (Only That)
Publics
Reply
#7

pawn Код:
new
     flakstart[MAX_PLAYERS]
;
Reply
#8

Quote:
Originally Posted by Aprezt
Посмотреть сообщение
pawn Код:
new
     flakstart[MAX_PLAYERS]
;
For everycommand i must do that? -_-
Reply
#9

Quote:
Originally Posted by [RaZ]Hal_Moore
Посмотреть сообщение
That Won't kill it obviously (-1HP), -_-.
Working Now, Thanks to BIGeti
Have you tested it? It is better than SetPlayerHealth(playerid, 0); because it has no chance of error.
Reply
#10

Quote:
Originally Posted by suhrab_mujeeb
Посмотреть сообщение
Have you tested it? It is better than SetPlayerHealth(playerid, 0); because it has no chance of error.
-999 Would be better than 0 and 1
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)