Getting The Following Errors: .....
#1

Getting The Following Errors: .....
Hey, I am having a problem.

When I script this command...:
Код:
	if(strcmp(cmd, "/ucorp", true) ==0)
	{
		if(GetPlayerScore(playerid) > 250)
			{
		 	team[playerid] = 12;
 			SetPlayerHealth(playerid, 0);
			}
			else
			{
				SendClientMessage(playerid,GREEN,"You Must Have A Score of 250 To Join The Umbrella Corporation");
			}
			 return 1;
 		}
	}
I get all these errors when scripting the above command:
Код:
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(736) : warning 217: loose indentation
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(756) : warning 217: loose indentation
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(982) : warning 219: local variable "target" shadows a variable at a preceding level
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1001) : warning 217: loose indentation
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1036) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1092) : warning 217: loose indentation
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1094) : warning 209: function "OnPlayerCommandText" should return a value
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1095) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1097) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1102) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1104) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1108) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1111) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1113) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1115) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1120) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1122) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1124) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1129) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1133) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1136) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1138) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1143) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1147) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1150) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1152) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1157) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1159) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1163) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1166) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1168) : error 010: invalid function or declaration
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1169) : error 021: symbol already defined: "AddItem"
C:\Users\admin\Desktop\ser 0.3\gamemodes\zobywsolf.pwn(1171) : error 010: invalid function or declaration
Reply
#2

Bump
Reply
#3

pawn Код:
if(strcmp(cmd, "/ucorp", true) ==0)
    {
      {
        if(GetPlayerScore(playerid) > 250)
            {
            team[playerid] = 12;
            SetPlayerHealth(playerid, 0);
            }
            else
            {
                SendClientMessage(playerid,GREEN,"You Must Have A Score of 250 To Join The Umbrella Corporation");
            }
             return 1;
        }
    }
Forgot {.
Reply
#4

You needed to bump your topic after seven minutes and one second already? Poor guy.
Reply
#5

Quote:
Originally Posted by $ЂЯĢ
You needed to bump your topic after seven minutes and one second already? Poor guy.
Agree, at a last topic (where someone kept bunping his topic after some minutes) I kinda lost myself and said that guy was an idiot, and no one wants to help an idiot and stuff like that ;P.
Reply
#6

DW, fixed it myself..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)