SA-MP Forums Archive
Please help! Cant compile gamemode! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Please help! Cant compile gamemode! (/showthread.php?tid=417844)



Please help! Cant compile gamemode! - Maartinshskd - 22.02.2013

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");
}



Re: Please help! Cant compile gamemode! - DanLore - 22.02.2013

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...


Re: Please help! Cant compile gamemode! - Baboon - 22.02.2013

Close ur brackets of ur public


Re: Please help! Cant compile gamemode! - NinjahZ - 03.03.2013

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

it should be
#include <a_samp>




Re: Please help! Cant compile gamemode! - Denying - 03.03.2013

SendKlientMezzage?

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


Re: Please help! Cant compile gamemode! - mittukuttan - 03.03.2013

SendclientMessage


Re: Please help! Cant compile gamemode! - Jstylezzz - 03.03.2013

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.