Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Problema la crearea unui job! [gm burned]


Question

Posted

Cum pot rezolva aceasta problema ??

Ma cam chinui de o ora si nu ii dau de cap.

E:\Gamemode\gamemodes\wa-rpg.pwn(26737) : error 002: only a single statement (or expression) can follow each "case"
E:\Gamemode\gamemodes\wa-rpg.pwn(26737) : warning 215: expression has no effect
E:\Gamemode\gamemodes\wa-rpg.pwn(26738) : warning 209: function "GetPlayerSkill" should return a value
E:\Gamemode\gamemodes\wa-rpg.pwn(26855) : error 002: only a single statement (or expression) can follow each "case"
E:\Gamemode\gamemodes\wa-rpg.pwn(26855) : warning 215: expression has no effect
E:\Gamemode\gamemodes\wa-rpg.pwn(26856) : warning 209: function "GetPlayerSkill2" should return a value
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
[Finished in 73.1s with exit code 1]
[cmd: ['pawncc.exe', '-i includes', 'E:\\Gamemode\\gamemodes\\wa-rpg.pwn', '-;+']]
[dir: E:\Gamemode\gamemodes]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\]

3 answers to this question

Recommended Posts

  • 0
Posted (edited)
function GetPlayerSkill(playerid) {
	bla bla bla(case 1, 2 ,3 ,etc)
    return level;
}

function GetPlayerSkill2(playerid, id) {
	bla bla bla(case 1, 2 ,3 ,etc)
    return level;
}
E:\Gamemode\gamemodes\wa-rpg.pwn(26855) : error 002: only a single statement (or expression) can follow each "case"

  cat despre eroarea asta poate ai uitat sa inchizi undeva statementul(ai uitat o } inainte de return 1;). Sper ca te-am ajutat!

 

Edited by BaFFyJunior

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.