SA-MP Forums Archive
need help with scripting - 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: need help with scripting (/showthread.php?tid=288295)



need help with scripting - Killer786 - 07.10.2011

need help with scripting
i made this cmds but it gives error :
Quote:

G:\FASGAN~1\FILTER~1\1.pwn(91) : error 001: expected token: ",", but found "-integer value-"

format
Quote:

public OnPlayerCommandText(playerid, cmdtext[])

if (strcmp ("/Commands", cmdtext,true 10) == 0)
{
SendClientMessage(playerid,0xFFE87DAA,"1./REGISTER to register you account
SendClientMessage(playerid,0xFFE87DAA,"2./LOGIN to login your acount");
SendClientMessage(playerid,0xFFE87DAA,"3./RANKS to see the rank");
SendClientMessage(playerid,0xFFE87DAA,"4./RANK [ID] to see what rank do a player got");
SendClientMessage(playerid,0xFFE87DAA,"5./REPORT if you saw any hcker");
SendClientMessage(playerid,0xFFE87DAA,"6./GANG to make a gand like squad");
SendClientMessage(playerid,0xFFE87DAA,"7./ADMINS to see the online admins");
SendClientMessage(playerid,0xFFE87DAA,"8./VIPLIST to see the online V.I,P");
{




Re: need help with scripting - Mr. Random - 07.10.2011

pawn Код:
SendClientMessage(playerid,0xFFE87DAA,"1./REGISTER to register you account);



Re: need help with scripting - Killer786 - 07.10.2011

nope this time 5 errors

Код:
G:\FASGAN~1\FILTER~1\2.pwn(43) : error 001: expected token: ",", but found "-integer value-"
G:\FASGAN~1\FILTER~1\2.pwn(43) : warning 215: expression has no effect
G:\FASGAN~1\FILTER~1\2.pwn(43) : error 001: expected token: ";", but found ")"
G:\FASGAN~1\FILTER~1\2.pwn(55) : error 010: invalid function or declaration
G:\FASGAN~1\FILTER~1\2.pwn(59) : error 010: invalid function or declaration
G:\FASGAN~1\FILTER~1\2.pwn(61) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase



Re: need help with scripting - aRoach - 07.10.2011

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if( !strcmp( cmdtext, "/commands") )
    {
        SendClientMessage(playerid,0xFFE87DAA,"1./REGISTER to register you account");
        SendClientMessage(playerid,0xFFE87DAA,"2./LOGIN to login your acount");
        SendClientMessage(playerid,0xFFE87DAA,"3./RANKS to see the rank");
        SendClientMessage(playerid,0xFFE87DAA,"4./RANK [ID] to see what rank do a player got");
        SendClientMessage(playerid,0xFFE87DAA,"5./REPORT if you saw any hcker");
        SendClientMessage(playerid,0xFFE87DAA,"6./GANG to make a gand like squad");
        SendClientMessage(playerid,0xFFE87DAA,"7./ADMINS to see the online admins");
        SendClientMessage(playerid,0xFFE87DAA,"8./VIPLIST to see the online V.I,P");
        return 1;
    }
    return 1;
}



Re: need help with scripting - wumpyc - 07.10.2011

This should work

PHP код:
#include "a_samp"
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp ("/Commands"cmdtext,true10) == 0)
    {
    
SendClientMessage(playerid,0xFFE87DAA,"1./REGISTER to register you account");
    
SendClientMessage(playerid,0xFFE87DAA,"2./LOGIN to login your acount");
    
SendClientMessage(playerid,0xFFE87DAA,"3./RANKS to see the rank");
    
SendClientMessage(playerid,0xFFE87DAA,"4./RANK [ID] to see what rank do a player got");
    
SendClientMessage(playerid,0xFFE87DAA,"5./REPORT if you saw any hcker");
    
SendClientMessage(playerid,0xFFE87DAA,"6./GANG to make a gand like squad");
    
SendClientMessage(playerid,0xFFE87DAA,"7./ADMINS to see the online admins");
    
SendClientMessage(playerid,0xFFE87DAA,"8./VIPLIST to see the online V.I,P");
    }
    return 
1;