/kill Get Error?
#1

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth(playerid, 0.0);
return 1;
}
return 0;
}

It Gots 2 Error...Do U Guys Know Why?

error 017: undefined symbol "strcmp"
error 017: undefined symbol "SetPlayerHealth"
Reply
#2

did you included a_samp ??
Reply
#3

Nope
Reply
#4

Put this in top of your script:
pawn Код:
#include <a_samp>
Reply
#5

Ahh...thanks...what step to do if i wanna put this /kill command into my server
Reply
#6

Quote:
Originally Posted by Trollolollo
Посмотреть сообщение
Ahh...thanks...what step to do if i wanna put this /kill command into my server
add it in your game mode after OnPlayerCommandText.
Reply
#7

GameMode File? Then I Need To Add The File Name At GameMode Line At Server.cfg?
Reply
#8

your gonna make us mad
Reply
#9

Quote:
Originally Posted by dr.lozer
Посмотреть сообщение
your gonna make us mad
Thats nice... You saying your going to be mad because he doesnt know how to do stuff? and yet your selling scripts and saying your a scripter yet you cant script as ive seen in your own scripting help threads.

On topic: go into your main gamemode file and do ctrl f and find OnPlayerCommandText paste it in there
then if its not already there put your gamemodes file name on server.cfg
Reply
#10

Quote:
Originally Posted by dr.lozer
Посмотреть сообщение
your gonna make us mad
dont say like that to a new script dude.
when the first time u just started scripting on samp u need to learn first right ?
same like in this situation ^^. next time just try to help them ^^ .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)