4 errors onplayertext
#1

errors line
pawn Код:
public OnPlayerText(playerid, text[])
{
        if( gTeam[playerid] == TEAM_JAPAN )
        {
            GetPlayerName(playerid,nameee,sizeof(nameee))format(string,sizeof(string),"[%i](%s): %s",playerid,nameee,cmdtext[3]); SendClientMessageToAll(COLOR_LIGHTRED, string);
            printf("Global Chat: %s: %s", nameee, cmdtext[3]);
        }
        if( gTeam[playerid] == TEAM_RUSSIA )
        {
            GetPlayerName(playerid,nameee,sizeof(nameee))format(string,sizeof(string),"[%i](%s): %s",playerid,nameee,cmdtext[3]); SendClientMessageToAll(COLOR_LIGHTRED, string);
            printf("Global Chat: %s: %s", nameee, cmdtext[3]);
        }
        if( gTeam[playerid] == TEAM_MERC )
        {
            GetPlayerName(playerid,nameee,sizeof(nameee))format(string,sizeof(string),"[%i](%s): %s",playerid,nameee,cmdtext[3]); SendClientMessageToAll(COLOR_LIGHTRED, string);
            printf("Global Chat: %s: %s", nameee, cmdtext[3]);
        }
        if( gTeam[playerid] == TEAM_USA )
        {
            GetPlayerName(playerid,nameee,sizeof(nameee))format(string,sizeof(string),"[%i](%s): %s",playerid,nameee,cmdtext[3]); SendClientMessageToAll(COLOR_LIGHTRED, string);
            printf("Global Chat: %s: %s", nameee, cmdtext[3]);
        }
        if( gTeam[playerid] == TEAM_GERMANY )
        {
            GetPlayerName(playerid,nameee,sizeof(nameee))format(string,sizeof(string),"[%i](%s): %s",playerid,nameee,cmdtext[3]); SendClientMessageToAll(COLOR_LIGHTRED, string);
            printf("Global Chat: %s: %s", nameee, cmdtext[3]);
        }
        return 1;
    }
errors
Код:
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3983) : error 017: undefined symbol "string"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3983) : error 017: undefined symbol "string"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3983) : warning 215: expression has no effect
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3983) : error 001: expected token: ";", but found "]"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3983) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Fast reply
Reply
#2

nice lol
Код:
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(932) : error 017: undefined symbol "GetPlayerSpeedSpeedo"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(942) : error 017: undefined symbol "IsPlayerInPlane"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(944) : error 017: undefined symbol "GetPlayerSpeedSpeedo"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(946) : error 017: undefined symbol "GetPlayerSpeedSpeedo"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(1013) : error 017: undefined symbol "GetPlayerSpeed"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(1014) : error 017: undefined symbol "IsPlayerInPlane"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(1025) : error 004: function "SendClientMessageToAdmins" is not implemented
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(1072) : error 004: function "MutePlayer" is not implemented
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(2334) : error 017: undefined symbol "CheckForLevelUpdate"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(2428) : error 017: undefined symbol "RestoreClassWeapons"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(2446) : error 004: function "SettingPlayerTeam" is not implemented
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(2485) : error 017: undefined symbol "RestoreClassWeapons"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(2487) : error 017: undefined symbol "Vip"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3534) : error 017: undefined symbol "CheckForLevelUpdate"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3553) : error 017: undefined symbol "SendMERCMessage"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3984) : error 017: undefined symbol "cmdtext"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3984) : warning 215: expression has no effect
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3984) : error 001: expected token: ";", but found "]"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3984) : error 029: invalid expression, assumed zero
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3984) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


19 Errors.
Reply
#3

pawn Код:
{
            GetPlayerName(playerid,nameee,sizeof(nameee))format(string,sizeof(string),"[%i](%s): %s",playerid,nameee,text); SendClientMessageToAll(COLOR_LIGHTRED, string);
            printf("Global Chat: %s: %s", nameee, text);
        }
Код:
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3983) : error 017: undefined symbol "string"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3983) : error 017: undefined symbol "string"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3983) : error 029: invalid expression, assumed zero
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3983) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#4

pawn Код:
{
    new string[128];
    GetPlayerName(playerid,nameee,sizeof(nameee));  format(string,sizeof(string),"[%i](%s):   %s",playerid,nameee,text);
    SendClientMessageToAll(COLOR_LIGHTRED, string);
    printf("Global Chat: %s: %s", nameee, text);
}
Reply
#5

Код:
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3988) : warning 217: loose indentation
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3990) : error 017: undefined symbol "string"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3990) : error 017: undefined symbol "string"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3990) : error 029: invalid expression, assumed zero
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3990) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#6

did you add new string[128];

Try to go to that line and see what the error is
Reply
#7

yes i do already
Код:
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(3988) : warning 217: loose indentation
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4072) : warning 217: loose indentation
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4074) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4082) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4088) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4094) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4100) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4106) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4112) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4118) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4124) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4130) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4136) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4142) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4151) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4157) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4163) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4169) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4175) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4181) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4187) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4193) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4199) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4205) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4211) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4221) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4227) : error 017: undefined symbol "text"
C:\Users\Vijay_Rasigan\Desktop\dddd.pwn(4233) : error 017: undefined symbol "text"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#8

You clearly just copy & pasted this code from a command. Before you attempt such endeavors you need to know the basics of Pawn.
Reply
#9

FIXED Thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)