Please help! Cant compile gamemode!
#1

Cant compile, please help!

Код HTML:
#include <e_samp>
 
#define COLOR_RED 0xAA3333AA
 
public OnPlayerConnect(playerid)
{
   SendClientMessage(playerid,COLOR_RED,"hi");
SendClientMessage(playerid,COLOR_RED,"welcome to our server");
SendClientMessage(playerid,COLOR_RED,"pls give money");
SendClientMessage(playerid,COLOR_RED,"paypal: [removed]");
GameTextForPlayer(playerid,3,3,3,"~y~Well~r~cum to our servah");
 
public OnPlayerEnterCheckpoint(playerid)
{
SendClientMessage(playerid,COLOR_RED,"u get lotz of cash nao");
givecash(playerid, 999999999999999999),
return all;
 
public onPlayerEnterVeicle(playerid, beicleid)
{
#emit light (red) for playerid
#emit light (blue) for playerid
SenKlientMessage[playerid, COLOR_RED, "u has neonz nao, hav fun"];
 
public OnPlayerDisconnect(playerid)
{
SendKlientMezzage(playerid, COLOR_RED, "plssssss, don't leave");
 
public OnPlayerUpdate(playerid)
{SendKlientMezsage(playerid, COLOR_RED, "gzzzzzzz, u have latest version of SamP nao");
 
CMD:fucku(playerid, paramz[128])
{
SendKlientMessaje(playerid, COLOR_RED, "y u no fuck urself?");
}
 
CMD:killallfags(playerid, paramz[128])
{
GivePlayerHealth(playerid, -100000);
SendKlientMessage(playerid, COLOR_RED, "u dead now moron");
}
Reply
#2

Not read through, but one thing at the top, it's a_samp unless this is a custom include? Anyway, what errors do you get?

Edit: Also noticed a fair few close brackets missing...
Reply
#3

Close ur brackets of ur public
Reply
#4

You cant compile cause you have....
#include <e_samp>

it should be
#include <a_samp>

Reply
#5

SendKlientMezzage?

I can't see it defined anywhere, is this a troll thread?
Reply
#6

SendclientMessage
Reply
#7

This doesn't look to good either:
pawn Код:
public OnPlayerUpdate(playerid)
{SendKlientMezsage(playerid, COLOR_RED, "gzzzzzzz, u have latest version of SamP nao");
It will flood the chat of the player, and there is a bracket missing '}'.
I would suggest that you read some documentation, check the wiki, and if needed check some scripts that are released on the forum, then start over with your script.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)