Newbie Scripter needs some help!
#1

Hey I am trying to create a help menu and I need some help , I know I should look at the guides but I like to learn as I go :P
Ok heres the command im making :
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/help", cmdtext, true, 10) == 0)
	{
		SendClientMessage(Playerid ,#008000 ,"Welcome To my test script!");
		SendClientMessage(Playerid ,#008000 ,"The Lastest Commands are:");
		SendClientMessage(Playerid ,#008000 ,"Look in /Commands for the newist Commands.");
		SendClientMessage(Playerid ,#008000 ,"Other help menus:");
		SendClientMessage(Playerid ,#008000 ,"Blah Blah.");
		SendClientMessage(Playerid ,#008000 ,"Enjoy !!");
		return 1;
	}
	return 0;
}
Im useing the sa-mp wiki guide and this is what it and pawno say I shoudl do but I get this... :
Код:
C:\Documents and Settings\rentacenter\Desktop\Gta Folder\SA-MP\gamemodes\TestScript.pwn(77) : error 017: undefined symbol "Playerid"
C:\Documents and Settings\rentacenter\Desktop\Gta Folder\SA-MP\gamemodes\TestScript.pwn(78) : error 017: undefined symbol "Playerid"
C:\Documents and Settings\rentacenter\Desktop\Gta Folder\SA-MP\gamemodes\TestScript.pwn(79) : error 017: undefined symbol "Playerid"
C:\Documents and Settings\rentacenter\Desktop\Gta Folder\SA-MP\gamemodes\TestScript.pwn(80) : error 017: undefined symbol "Playerid"
C:\Documents and Settings\rentacenter\Desktop\Gta Folder\SA-MP\gamemodes\TestScript.pwn(81) : error 017: undefined symbol "Playerid"
C:\Documents and Settings\rentacenter\Desktop\Gta Folder\SA-MP\gamemodes\TestScript.pwn(82) : error 017: undefined symbol "Playerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/help", cmdtext, true) == 0)
    {
        SendClientMessage(playerid ,#008000 ,"Welcome To my test script!");
        SendClientMessage(playerid ,#008000 ,"The Lastest Commands are:");
        SendClientMessage(playerid ,#008000 ,"Look in /Commands for the newist Commands.");
        SendClientMessage(playerid ,#008000 ,"Other help menus:");
        SendClientMessage(playerid ,#008000 ,"Blah Blah.");
        SendClientMessage(playerid ,#008000 ,"Enjoy !!");
        return 1;
    }
    return 0;
}
Reply
#3

Tryed that and got this
Код:
C:\Documents and Settings\rentacenter\Desktop\Gta Folder\SA-MP\gamemodes\TestScript.pwn(77) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\rentacenter\Desktop\Gta Folder\SA-MP\gamemodes\TestScript.pwn(78) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\rentacenter\Desktop\Gta Folder\SA-MP\gamemodes\TestScript.pwn(79) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\rentacenter\Desktop\Gta Folder\SA-MP\gamemodes\TestScript.pwn(80) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\rentacenter\Desktop\Gta Folder\SA-MP\gamemodes\TestScript.pwn(81) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\rentacenter\Desktop\Gta Folder\SA-MP\gamemodes\TestScript.pwn(82) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply
#4

Show the lines
Also what colour is #008000
Reply
#5

Код:
#include <a_samp>




main()
{
	print("\n----------------------------------");
	print(" Test Gamemode by Chris Wilson		");
	print("----------------------------------\n");
}



public OnGameModeInit()
{
  LimitGlobalChatRadius(20.0);
  SetNameTagDrawDistance(10.0);
  return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/help", cmdtext, true) == 0)
	{
		SendClientMessage(playerid ,#008000 ,"Welcome To my test script!");
		SendClientMessage(playerid ,#008000 ,"The Lastest Commands are:");
		SendClientMessage(playerid ,#008000 ,"Look in /Commands for the newist Commands.");
		SendClientMessage(playerid ,#008000 ,"Other help menus:");
		SendClientMessage(playerid ,#008000 ,"Blah Blah.");
		SendClientMessage(playerid ,#008000 ,"Enjoy !!");
		return 1;
	}
	return 0;
}
I used a hex color guide and it said that that code was for green
Reply
#6

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/help", cmdtext, true) == 0)
    {
        SendClientMessage(playerid ,0x21DD00FF ,"Welcome To my test script!");
        SendClientMessage(playerid ,0x21DD00FF ,"The Lastest Commands are:");
        SendClientMessage(playerid ,0x21DD00FF ,"Look in /Commands for the newist Commands.");
        SendClientMessage(playerid ,0x21DD00FF ,"Other help menus:");
        SendClientMessage(playerid ,0x21DD00FF ,"Blah Blah.");
        SendClientMessage(playerid ,0x21DD00FF ,"Enjoy !!");
        return 1;
    }
    return 0;
}
Try that
Reply
#7

It worked Thanks
also can someone give me a link hex color guide?
Reply
#8

http://forum.sa-mp.com/index.php?act...;topic=85643.0
there is a really really big list there with all colors and search the forum on : color picker and download one but the site i gave u is easier

Edit : here is the link for color picker : http://forum.sa-mp.com/index.php?topic=149889.0
________
Bondage live
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)